INFO: No output directory specified (--dir) INFO: Using directory: "templateSANS2_Mantid_20240919_020339" INFO: Regenerating c-file: templateSANS2_Mantid.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./templateSANS2_Mantid.c templateSANS2_Mantid.instr Info: 'PSD_monitor_rad' is a contributed component. CFLAGS= @NEXUSFLAGS@ ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component sampleMantid ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component sampleMantid ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./templateSANS2_Mantid.out --> pointing path miniconda3/lib to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib --> pointing path miniconda3/lib to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib --> pointing path miniconda3/include/nexus to /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include/nexus DEBUG: CMD: nvc -o ./templateSANS2_Mantid.out ./templateSANS2_Mantid.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -DUSE_NEXUS -lNeXus -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include/nexus "./templateSANS2_Mantid.c", line 3024: warning: variable "fid" was declared but never referenced [declared_but_not_referenced] FILE *fid; /* for intrument source code/C/IDF */ ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./templateSANS2_Mantid.c", line 4493: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./templateSANS2_Mantid.c", line 9072: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateSANS2_Mantid.c", line 9072: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateSANS2_Mantid.c", line 9099: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateSANS2_Mantid.c", line 9099: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateSANS2_Mantid.c", line 10996: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSANS2_Mantid.c", line 10996: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSANS2_Mantid.c", line 10996: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSANS2_Mantid.c", line 10996: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSANS2_Mantid.c", line 10996: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSANS2_Mantid.c", line 10996: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./templateSANS2_Mantid.c", line 11353: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./templateSANS2_Mantid.c", line 12641: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateSANS2_Mantid.c", line 12629: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./templateSANS2_Mantid.c", line 12685: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateSANS2_Mantid.c", line 12682: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./templateSANS2_Mantid.c", line 12727: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./templateSANS2_Mantid.c", line 12791: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./templateSANS2_Mantid.c", line 12849: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./templateSANS2_Mantid.c", line 12907: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./templateSANS2_Mantid.c", line 12956: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./templateSANS2_Mantid.c", line 13021: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./templateSANS2_Mantid.c", line 13084: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./templateSANS2_Mantid.c", line 13149: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./templateSANS2_Mantid.c", line 13214: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./templateSANS2_Mantid.c", line 13279: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./templateSANS2_Mantid.c", line 13345: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./templateSANS2_Mantid.c", line 13406: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./templateSANS2_Mantid.c", line 13467: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./templateSANS2_Mantid.c", line 14633: warning: variable "thmax" was set but never used [set_but_not_used] double qmax,qmaxl,Ymax,Xmax,thmax; ^ "./templateSANS2_Mantid.c", line 16759: warning: variable "radius" was declared but never referenced [declared_but_not_referenced] double radius = 0; ^ "./templateSANS2_Mantid.c", line 16760: warning: variable "h" was declared but never referenced [declared_but_not_referenced] double h = 0; ^ "./templateSANS2_Mantid.c", line 17225: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateSANS2_Mantid.c", line 17226: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ mcgenstate: 90, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 104, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 137, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 162, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 185, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 196, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 205, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 216, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1549, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1553, Generating acc routine seq Generating NVIDIA GPU code str_len: 1562, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4114, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4545, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4556, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4565, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4577, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4589, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4599, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4609, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4649, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4656, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4702, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4737, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4748, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4776, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4792, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4821, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4832, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4836, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5013, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5044, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5061, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5160, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5244, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5310, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5387, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5659, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5669, Generating acc routine seq Generating NVIDIA GPU code _hash: 5695, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5736, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5747, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5752, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5760, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5768, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5775, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6434, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6470, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6530, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6547, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6662, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6717, Generating acc routine seq Generating NVIDIA GPU code Min: 6846, Generating acc routine seq Generating NVIDIA GPU code Max: 6851, Generating acc routine seq Generating NVIDIA GPU code IMin: 6856, Generating acc routine seq Generating NVIDIA GPU code IMax: 6861, Generating acc routine seq Generating NVIDIA GPU code dSigdW: 6866, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8068, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10050, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10118, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10197, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10665, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10681, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10699, Generating acc routine seq Generating NVIDIA GPU code off_F: 10953, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10958, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10968, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10994, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11057, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11188, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11233, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11350, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11468, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11480, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11515, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11766, Generating acc routine seq Generating NVIDIA GPU code merge: 11773, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11877, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11892, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11946, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12063, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12085, Generating acc routine seq Generating NVIDIA GPU code init: 14257, Generating update device(_Sample_in_var,_a1_var,_sourceMantid_var,_sample_position_var,_arm_var,_coll1_var,_sampleMantid_var,_PSDrad_var,_nD_Mantid_1_var,_detectorSANS_var,_detectorDB_var,_coll2_var,_PSDrad_full_var,_Ldetector_var,_instrument_var,_detector_var) class_Progress_bar_trace: 14302, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 14392, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 14495, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14539, Generating acc routine seq Generating NVIDIA GPU code class_SANS_spheres2_trace: 14610, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 14855, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_rad_trace: 14928, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 14987, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15282, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15641, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15652, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15641, Local memory used for .inl_particle_19338,particleN,.inl_.inl_mcneutron_0_19353,.inl_.X2148_19355,.inl_.inl_.X2385_15_19354 15652, Generating implicit firstprivate(seed,_particle) finally: 16497, Generating update self(_Sample_in_var,_a1_var,_sample_position_var,_sourceMantid_var,_arm_var,_coll1_var,_sampleMantid_var,_PSDrad_var,_nD_Mantid_1_var,_detectorSANS_var,_detectorDB_var,_coll2_var,_PSDrad_full_var,_Ldetector_var,_instrument_var,_detector_var) mcenabletrace: 5894, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===