INFO: No output directory specified (--dir) INFO: Using directory: "ISIS_Prisma2_20241222_082708" INFO: Regenerating c-file: ISIS_Prisma2.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./ISIS_Prisma2.c ISIS_Prisma2.instr 2024-12-22 08:27:35.729 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Incoherent(0):read_table-lib :Incoherent(1):interoff-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-22 08:27:35.730 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib 2024-12-22 08:27:35.730 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib The instrument has 10 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component mod -> GPU kernel from component modslit -> GPU kernel from component tof_test -> GPU kernel from component mon1 -> GPU kernel from component slit1 -> GPU kernel from component slit2 -> GPU kernel from component mon2 -> GPU kernel from component sample -> GPU kernel from component a2 -> GPU kernel from component mon3 -> GPU kernel from component coll2 -> GPU kernel from component mon4 -> GPU kernel from component rita_ana -> GPU kernel from component ana1 -> GPU kernel from component ana2 -> GPU kernel from component ana3 -> GPU kernel from component ana4 -> GPU kernel from component ana5 -> GPU kernel from component ana6 -> GPU kernel from component ana7 -> GPU kernel from component a3 -> GPU kernel from component mon5 -> GPU kernel from component mon6 -> GPU kernel from component psd -> GPU kernel from component Detector -> GPU kernel from component Detector1 -> GPU kernel from component Detector2 -> GPU kernel from component Detector3 -> GPU kernel from component Detector4 -> GPU kernel from component Detector5 -> GPU kernel from component Detector6 -> GPU kernel from component Detector7 -> GPU kernel from component mon9 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./ISIS_Prisma2.out DEBUG: CMD: nvc -o ./ISIS_Prisma2.out ./ISIS_Prisma2.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ISIS_Prisma2.c", line 4492: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./ISIS_Prisma2.c", line 9905: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ISIS_Prisma2.c", line 9905: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ISIS_Prisma2.c", line 9932: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ISIS_Prisma2.c", line 9932: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ISIS_Prisma2.c", line 11474: 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; ^ "./ISIS_Prisma2.c", line 11474: 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; ^ "./ISIS_Prisma2.c", line 11474: 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; ^ "./ISIS_Prisma2.c", line 11474: 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; ^ "./ISIS_Prisma2.c", line 11474: 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; ^ "./ISIS_Prisma2.c", line 11474: 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; ^ "./ISIS_Prisma2.c", line 11831: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ISIS_Prisma2.c", line 12757: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ISIS_Prisma2.c", line 15525: warning: variable "l_i" was set but never used [set_but_not_used] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./ISIS_Prisma2.c", line 15525: warning: variable "l_o" was declared but never referenced [declared_but_not_referenced] double l_i, l_o=0; /* Flight path lenght in/out for scattered neutron */ ^ "./ISIS_Prisma2.c", line 19016: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ISIS_Prisma2.c", line 19017: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ISIS_Prisma2.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ISIS_Prisma2.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: 4113, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4544, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4555, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4564, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4576, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4588, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4598, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4616, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4626, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4648, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4655, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4701, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4736, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4747, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4764, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4775, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4791, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4820, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4831, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4835, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5012, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5043, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5060, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5159, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5243, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5309, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5386, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5658, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5668, Generating acc routine seq Generating NVIDIA GPU code _hash: 5694, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5735, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5746, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5751, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5759, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5767, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5774, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6431, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6527, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6544, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6659, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6714, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8886, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10731, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10799, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10878, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11346, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11362, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11380, Generating acc routine seq Generating NVIDIA GPU code off_F: 11431, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11436, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11446, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11472, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11535, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11666, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11711, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11828, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11946, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11958, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11993, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12244, Generating acc routine seq Generating NVIDIA GPU code merge: 12251, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12355, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12370, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12424, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12541, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12563, Generating acc routine seq Generating NVIDIA GPU code init: 15178, Generating update device(_instrument_var,_mod_var,_tof_test_var,_slit2_var,_modslit_var,_sample_var,_slit1_var,_mon1_var,_rita_ana_var,_Detector_var,_mon2_var,_ana7_var,_mon3_var,_psd_var,_a3_var,_ana1_var,_ana2_var,_ana3_var,_ana4_var,_ana5_var,_ana6_var,_a2_var,_mon4_var,_mon5_var,_mon9_var,_Detector7_var,_Detector1_var,_Detector2_var,_Detector3_var,_Detector4_var,_Detector5_var,_Detector6_var,_mon6_var,_coll2_var) class_Moderator_trace: 15219, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 15302, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 15346, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_trace: 15427, Generating acc routine seq Generating NVIDIA GPU code class_Incoherent_trace: 15485, Generating acc routine seq Generating NVIDIA GPU code 15682, Reference argument passing prevents parallelization: solid_angle 15685, Reference argument passing prevents parallelization: solid_angle class_Collimator_linear_trace: 15785, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_flat_trace: 15859, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 16081, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16152, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16448, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17155, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17169, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17155, Local memory used for .inl_particle_22037,particleN,.inl_.inl_mcneutron_0_22052,.inl_.X2193_22054,.inl_.inl_.X2394_15_22053 17169, Generating implicit firstprivate(seed,_particle) finally: 18194, Generating update self(_instrument_var,_mod_var,_tof_test_var,_slit2_var,_modslit_var,_sample_var,_slit1_var,_mon1_var,_rita_ana_var,_Detector_var,_mon2_var,_ana7_var,_mon3_var,_psd_var,_a3_var,_ana1_var,_ana2_var,_ana3_var,_ana4_var,_ana5_var,_ana6_var,_a2_var,_mon4_var,_mon5_var,_mon9_var,_Detector7_var,_Detector1_var,_Detector2_var,_Detector3_var,_Detector4_var,_Detector5_var,_Detector6_var,_mon6_var,_coll2_var) mcenabletrace: 5893, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatyy94gi6IN0UOy.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===