INFO: No output directory specified (--dir) INFO: Using directory: "templateSANS2_Mantid_20241206_122005" INFO: Regenerating c-file: templateSANS2_Mantid.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./templateSANS2_Mantid.c templateSANS2_Mantid.instr Downloading file 'mcstas-comps/samples/SANS_spheres2.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/samples/SANS_spheres2.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 12:20:08.396 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-06 12:20:08.396 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component sampleMantid ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component a1 -> GPU kernel from component arm -> GPU kernel from component sourceMantid -> GPU kernel from component coll1 -> GPU kernel from component coll2 -> GPU kernel from component sample_position -> GPU kernel from component Sample_in -> SPLIT within buffer at component sampleMantid -> GPU kernel from component detector -> GPU kernel from component detectorSANS -> GPU kernel from component detectorDB -> GPU kernel from component Ldetector -> GPU kernel from component PSDrad -> GPU kernel from component PSDrad_full -> GPU kernel from component nD_Mantid_1 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./templateSANS2_Mantid.out DEBUG: CMD: nvc -o ./templateSANS2_Mantid.out ./templateSANS2_Mantid.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./templateSANS2_Mantid.c", line 4491: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./templateSANS2_Mantid.c", line 9785: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateSANS2_Mantid.c", line 9785: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateSANS2_Mantid.c", line 9812: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateSANS2_Mantid.c", line 9812: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateSANS2_Mantid.c", line 11354: 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 11354: 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 11354: 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 11354: 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 11354: 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 11354: 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 11711: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./templateSANS2_Mantid.c", line 12621: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateSANS2_Mantid.c", line 12652: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateSANS2_Mantid.c", line 14317: warning: variable "thmax" was set but never used [set_but_not_used] double qmax,qmaxl,Ymax,Xmax,thmax; ^ "./templateSANS2_Mantid.c", line 16406: warning: variable "radius" was declared but never referenced [declared_but_not_referenced] double radius = 0; ^ "./templateSANS2_Mantid.c", line 16407: warning: variable "h" was declared but never referenced [declared_but_not_referenced] double h = 0; ^ "./templateSANS2_Mantid.c", line 16855: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateSANS2_Mantid.c", line 16856: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./templateSANS2_Mantid.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./templateSANS2_Mantid.c", line 2903: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ 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: 197, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 206, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 217, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1547, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1551, Generating acc routine seq Generating NVIDIA GPU code str_len: 1560, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4112, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4543, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4554, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4587, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4654, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4700, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4735, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4746, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4763, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4774, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4790, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4819, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4830, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4834, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5011, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5042, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5059, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5158, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5242, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5308, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5385, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5657, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5667, Generating acc routine seq Generating NVIDIA GPU code _hash: 5693, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5734, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5745, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5750, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5758, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5766, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5773, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6430, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6526, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6543, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6658, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6713, Generating acc routine seq Generating NVIDIA GPU code Min: 7396, Generating acc routine seq Generating NVIDIA GPU code Max: 7401, Generating acc routine seq Generating NVIDIA GPU code IMin: 7406, Generating acc routine seq Generating NVIDIA GPU code IMax: 7411, Generating acc routine seq Generating NVIDIA GPU code dSigdW: 7416, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8781, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10611, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10679, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10758, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11226, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11242, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11260, Generating acc routine seq Generating NVIDIA GPU code off_F: 11311, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11316, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11326, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11352, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11415, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11546, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11591, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11708, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11826, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11838, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11873, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12124, Generating acc routine seq Generating NVIDIA GPU code merge: 12131, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12235, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12250, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12304, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12421, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12443, Generating acc routine seq Generating NVIDIA GPU code init: 13944, 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: 13985, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 14076, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 14179, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14223, Generating acc routine seq Generating NVIDIA GPU code class_SANS_spheres2_trace: 14294, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 14539, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_rad_trace: 14612, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 14671, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14967, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15324, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15338, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15324, Local memory used for .inl_particle_16997,particleN,.inl_.inl_mcneutron_0_17012,.inl_.X2137_17014,.inl_.inl_.X2340_15_17013 15338, Generating implicit firstprivate(seed,_particle) finally: 16188, 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: 5892, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===