INFO: No output directory specified (--dir) INFO: Using directory: "BTsimple_20241118_075038" INFO: Regenerating c-file: BTsimple.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./BTsimple.c BTsimple.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./BTsimple.out DEBUG: CMD: nvc -o ./BTsimple.out ./BTsimple.c -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./BTsimple.c", line 3713: warning: missing return statement at end of non-void function "siminfo_init" [implicit_return_from_non_void_function] } /* siminfo_init */ ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./BTsimple.c", line 4499: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./BTsimple.c", line 8933: warning: variable "numerator" was declared but never referenced [declared_but_not_referenced] double numerator; ^ "./BTsimple.c", line 8934: warning: variable "denominator" was declared but never referenced [declared_but_not_referenced] double denominator; ^ "./BTsimple.c", line 9755: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./BTsimple.c", line 9743: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./BTsimple.c", line 9796: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./BTsimple.c", line 9886: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./BTsimple.c", line 9935: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./BTsimple.c", line 10001: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./BTsimple.c", line 10071: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./BTsimple.c", line 10136: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./BTsimple.c", line 10233: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./BTsimple.c", line 10282: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./BTsimple.c", line 10348: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./BTsimple.c", line 10418: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./BTsimple.c", line 11834: warning: incompatible redefinition of macro "exit" (declared at line 615) [bad_macro_redef] #define exit(...) noprintf() ^ "./BTsimple.c", line 12294: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./BTsimple.c", line 12479: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side=0; ^ "./BTsimple.c", line 12481: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType=0; ^ "./BTsimple.c", line 14255: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./BTsimple.c", line 14256: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./BTsimple.c", line 14257: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./BTsimple.c", line 14260: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 14260: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 14261: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 14261: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 14267: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./BTsimple.c", line 14723: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./BTsimple.c", line 14724: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./BTsimple.c", line 1508: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./BTsimple.c", line 2911: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 139, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 165, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 189, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 200, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 209, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 221, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1555, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1559, Generating acc routine seq Generating NVIDIA GPU code str_len: 1568, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4120, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4551, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4571, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4583, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4655, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4662, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4708, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4743, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4754, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4771, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4782, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4798, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4827, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4838, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4842, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5019, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5050, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5067, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5166, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5250, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5316, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5393, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5665, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5675, Generating acc routine seq Generating NVIDIA GPU code _hash: 5701, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5742, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5758, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5766, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5774, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5781, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6440, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6476, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6536, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6553, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6668, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6723, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7745, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7813, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7892, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8360, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8376, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8394, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8441, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 8545, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 8604, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_foverdf: 8916, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_newtonRapsonsMethod4thOrder: 8931, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_findNeutronEllipseIntersection: 8952, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleGuideIntersection: 9008, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_ReflectionOnEllipticSurface: 9195, Generating acc routine seq Generating NVIDIA GPU code guide_elliptical_handleReflection: 9255, Generating acc routine seq Generating NVIDIA GPU code init: 11804, Generating update device(_instrument_var,_source_var,_origin_var,_BT_out_var,_CalcDiv2_var,_Div_out_var,_PSD_out_var,_CalcDiv1_var,_BT_in_var,_Div_in_var,_PSD_in_var,_guide_var) class_Progress_bar_trace: 11847, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 11948, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 12157, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 12196, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 12269, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 12359, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 12430, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12619, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12907, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12921, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12907, Local memory used for .inl_particle_13876,particleN,.inl_.inl_mcneutron_0_13891,.inl_.X2134_13893,.inl_.inl_.X2352_15_13892 12921, Generating implicit firstprivate(mpi_node_rank,_particle,seed,ncount) finally: 13734, Generating update self(_instrument_var,_origin_var,_source_var,_BT_out_var,_CalcDiv2_var,_Div_out_var,_PSD_out_var,_CalcDiv1_var,_BT_in_var,_Div_in_var,_PSD_in_var,_guide_var) mcenabletrace: 5900, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===