INFO: No output directory specified (--dir) INFO: Using directory: "SEMSANS_instrument_20241118_022942" INFO: Regenerating c-file: SEMSANS_instrument.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./SEMSANS_instrument.c SEMSANS_instrument.instr Info: 'Pol_pi_2_rotator' is a contributed component. Info: 'Pol_triafield' is a contributed component. 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: ./SEMSANS_instrument.out DEBUG: CMD: nvc -o ./SEMSANS_instrument.out ./SEMSANS_instrument.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./SEMSANS_instrument.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./SEMSANS_instrument.c", line 9323: warning: variable "count" was declared but never referenced [declared_but_not_referenced] long count=0; ^ "./SEMSANS_instrument.c", line 9415: warning: missing return statement at end of non-void function "interpolator_interpolate" [implicit_return_from_non_void_function] } // interpolator_interpolate ^ "./SEMSANS_instrument.c", line 10420: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./SEMSANS_instrument.c", line 10408: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./SEMSANS_instrument.c", line 10461: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./SEMSANS_instrument.c", line 10525: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./SEMSANS_instrument.c", line 10589: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./SEMSANS_instrument.c", line 10653: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./SEMSANS_instrument.c", line 10708: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./SEMSANS_instrument.c", line 10766: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./SEMSANS_instrument.c", line 10822: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./SEMSANS_instrument.c", line 10878: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./SEMSANS_instrument.c", line 10938: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./SEMSANS_instrument.c", line 10997: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./SEMSANS_instrument.c", line 11053: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./SEMSANS_instrument.c", line 11113: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./SEMSANS_instrument.c", line 11172: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./SEMSANS_instrument.c", line 11228: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./SEMSANS_instrument.c", line 11284: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./SEMSANS_instrument.c", line 11344: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./SEMSANS_instrument.c", line 11403: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./SEMSANS_instrument.c", line 11459: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./SEMSANS_instrument.c", line 11519: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./SEMSANS_instrument.c", line 11578: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./SEMSANS_instrument.c", line 11634: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./SEMSANS_instrument.c", line 11690: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./SEMSANS_instrument.c", line 11748: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./SEMSANS_instrument.c", line 11801: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./SEMSANS_instrument.c", line 11859: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./SEMSANS_instrument.c", line 11917: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./SEMSANS_instrument.c", line 11975: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./SEMSANS_instrument.c", line 12033: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./SEMSANS_instrument.c", line 12091: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 30; ^ "./SEMSANS_instrument.c", line 12522: warning: enumerated type mixed with another type [mixed_enum_type] enum field_functions ff=field_type; ^ "./SEMSANS_instrument.c", line 12617: warning: variable "velocity" was declared but never referenced [declared_but_not_referenced] double velocity = 0, time = 0; ^ "./SEMSANS_instrument.c", line 12617: warning: variable "time" was declared but never referenced [declared_but_not_referenced] double velocity = 0, time = 0; ^ "./SEMSANS_instrument.c", line 12990: warning: incompatible redefinition of macro "strcmp" (declared at line 9371) [bad_macro_redef] #define strcmp(a,b) str_comp(a,b) ^ "./SEMSANS_instrument.c", line 13420: warning: expression has no effect [expr_has_no_effect] SCATTERED; ^ "./SEMSANS_instrument.c", line 13569: warning: variable "nofield" was declared but never referenced [declared_but_not_referenced] int nofield=0; ^ "./SEMSANS_instrument.c", line 16218: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./SEMSANS_instrument.c", line 16219: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./SEMSANS_instrument.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./SEMSANS_instrument.c", line 2898: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 88, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 102, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 134, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 158, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 180, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 191, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 200, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 210, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1542, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1546, Generating acc routine seq Generating NVIDIA GPU code str_len: 1555, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4107, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4538, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4558, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4602, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4620, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4642, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4649, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4695, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4758, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4785, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4814, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4825, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4829, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5006, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5037, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5054, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5153, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5237, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5303, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5380, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5652, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5662, Generating acc routine seq Generating NVIDIA GPU code _hash: 5688, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5729, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5740, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5745, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5761, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5768, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6427, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6463, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6523, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6540, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6655, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7966, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8034, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8113, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8581, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8597, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8615, Generating acc routine seq Generating NVIDIA GPU code kdtree_squaredDistance: 8868, Generating acc routine seq Generating NVIDIA GPU code kdtree_borderCheck: 8885, Generating acc routine seq Generating NVIDIA GPU code kdtree_partition: 8919, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour_helper: 8995, Generating acc routine seq Generating NVIDIA GPU code kdtree_nearestNeighbour: 9033, Generating acc routine seq Generating NVIDIA GPU code interpolator_offset: 9103, Generating acc routine seq Generating NVIDIA GPU code interpolator_load: 9307, Generating copyin(array[:prod]) [if not already present] interpolator_interpolate: 9368, Generating acc routine seq Generating NVIDIA GPU code interpolator_interpolate3_3: 9427, Generating acc routine seq Generating NVIDIA GPU code magnetic_field_dispatcher: 9481, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_get_field: 9520, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_push: 9561, Generating acc routine seq Generating NVIDIA GPU code mcmagnet_pop: 9594, Generating acc routine seq Generating NVIDIA GPU code const_magnetic_field: 9619, Generating acc routine seq Generating NVIDIA GPU code rot_magnetic_field: 9629, Generating acc routine seq Generating NVIDIA GPU code majorana_magnetic_field: 9643, Generating acc routine seq Generating NVIDIA GPU code gradient_magnetic_field: 9659, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolFNFM: 9686, Generating acc routine seq Generating NVIDIA GPU code GetMonoPolRefProb: 9715, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolRefOut: 9739, Generating acc routine seq Generating NVIDIA GPU code SetMonoPolTransOut: 9766, Generating acc routine seq Generating NVIDIA GPU code SimpleNumMagnetPrecession: 9786, Generating acc routine seq Generating NVIDIA GPU code 9819, Reference argument passing prevents parallelization: BzTemp Reference argument passing prevents parallelization: ByTemp Reference argument passing prevents parallelization: BxTemp GetConstantField: 9881, Generating acc routine seq Generating NVIDIA GPU code IntersectWall: 9899, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 12959, Generating update device(_Guide_field4_var,_slit_2_var,_analyser_var,_chop1_var,_instrument_var,_polarizer_var,_triacoil_2_var,_vcoil1_var,_Guide_field1_cp_var,_GratingSlit1_5_var,_source_var,_Guide_field2_cp_var,_Guide_field1_var,_vcoil2_var,_vcoil3_var,_Guide_field3_cp_var,_Guide_field2_var,_triacoil_1_var,_Guide_field4_cp_var,_Guide_field3_var,_vcoil4_var,_vcoil6_var,_vcoil5_var,_slit_1_var,_TOF_det_var,_GratingSlit1_1_var,_GratingSlit1_2_var,_GratingSlit1_3_var,_GratingSlit1_4_var,_Origin_var,_chop2_var) class_Progress_bar_trace: 13002, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 13092, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 13195, Generating acc routine seq Generating NVIDIA GPU code class_Set_pol_trace: 13285, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 13346, Generating acc routine seq Generating NVIDIA GPU code class_Pol_pi_2_rotator_trace: 13390, Generating acc routine seq Generating NVIDIA GPU code class_Pol_Bfield_trace: 13447, Generating acc routine seq Generating NVIDIA GPU code class_Pol_Bfield_stop_trace: 13558, Generating acc routine seq Generating NVIDIA GPU code class_Pol_triafield_trace: 13619, Generating acc routine seq Generating NVIDIA GPU code class_PolAnalyser_ideal_trace: 13708, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 13750, Generating acc routine seq Generating NVIDIA GPU code raytrace: 13835, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14539, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14553, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14539, Local memory used for .inl_particle_26026,particleN,.inl_.inl_mcneutron_0_26041,.inl_.X2048_26043,.inl_.inl_.X2248_15_26042 14553, Generating implicit firstprivate(seed,_particle) finally: 15421, Generating update self(_Guide_field4_var,_slit_2_var,_analyser_var,_chop1_var,_instrument_var,_polarizer_var,_triacoil_2_var,_vcoil1_var,_Guide_field1_cp_var,_GratingSlit1_5_var,_source_var,_Guide_field2_cp_var,_Guide_field1_var,_vcoil2_var,_vcoil3_var,_Guide_field3_cp_var,_Guide_field2_var,_triacoil_1_var,_Guide_field4_cp_var,_Guide_field3_var,_vcoil4_var,_vcoil6_var,_vcoil5_var,_slit_1_var,_TOF_det_var,_GratingSlit1_1_var,_GratingSlit1_2_var,_GratingSlit1_3_var,_GratingSlit1_4_var,_Origin_var,_chop2_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===