INFO: No output directory specified (--dir) INFO: Using directory: "BTsimple_20240919_023049" 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 -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./BTsimple.c", line 4499: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./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 12296: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./BTsimple.c", line 12481: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.side=0; ^ "./BTsimple.c", line 12483: warning: enumerated type mixed with another type [mixed_enum_type] latestParticleCollision.collisionType=0; ^ "./BTsimple.c", line 14230: warning: variable "Length" was declared but never referenced [declared_but_not_referenced] double Length; ^ "./BTsimple.c", line 14231: warning: variable "entranceHorizontalWidth" was declared but never referenced [declared_but_not_referenced] double entranceHorizontalWidth; ^ "./BTsimple.c", line 14232: warning: variable "entranceVerticalWidth" was declared but never referenced [declared_but_not_referenced] double entranceVerticalWidth; ^ "./BTsimple.c", line 14235: warning: variable "ellipseMajorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 14235: warning: variable "ellipseMinorAxis" was declared but never referenced [declared_but_not_referenced] double ellipseMajorAxis[4], ellipseMinorAxis[4]; ^ "./BTsimple.c", line 14236: warning: variable "ellipseMajorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 14236: warning: variable "ellipseMinorOffset" was declared but never referenced [declared_but_not_referenced] double ellipseMajorOffset[4], ellipseMinorOffset[4]; ^ "./BTsimple.c", line 14242: warning: variable "tempz" was declared but never referenced [declared_but_not_referenced] double tempz = 0; ^ "./BTsimple.c", line 14698: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./BTsimple.c", line 14699: 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: 11849, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 11950, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 12159, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 12198, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 12271, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 12361, Generating acc routine seq Generating NVIDIA GPU code class_Elliptic_guide_gravity_trace: 12432, Generating acc routine seq Generating NVIDIA GPU code raytrace: 12621, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 12910, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 12921, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 12910, Local memory used for .inl_particle_13736,particleN,.inl_.inl_mcneutron_0_13751,.inl_.X2010_13753,.inl_.inl_.X2209_15_13752 12921, Generating implicit firstprivate(seed,_particle) finally: 13709, 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: ===