INFO: No output directory specified (--dir) INFO: Using directory: "FZJ_BenchmarkSfin2_20241206_090442" INFO: Regenerating c-file: FZJ_BenchmarkSfin2.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./FZJ_BenchmarkSfin2.c FZJ_BenchmarkSfin2.instr Downloading file 'mcstas-comps/optics/Set_pol.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Set_pol.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/CavitiesIn.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/CavitiesIn.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/Transmission_polarisatorABSnT.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/Transmission_polarisatorABSnT.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/CavitiesOut.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/CavitiesOut.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/SANS_benchmark2.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/SANS_benchmark2.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/contrib/TOFSANSdet.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/contrib/TOFSANSdet.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 09:04:49.809 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :ESS_butterfly(0):ESS_butterfly-lib :Bender(0):ref-lib :ref-lib(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :Guide(0):read_table-lib :Guide(1):ref-lib 2024-12-06 09:04:49.809 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib ESS_butterfly-lib 2024-12-06 09:04:49.810 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib ESS_butterfly-lib 2024-12-06 09:04:49.810 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib interoff-lib ESS_butterfly-lib 2024-12-06 09:04:49.810 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib ESS_butterfly-lib monitor_nd-lib interoff-lib No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 1000 at component repeat ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component origin -> GPU kernel from component source -> GPU kernel from component rspin -> GPU kernel from component pbar -> GPU kernel from component Bender1 -> GPU kernel from component Bender2 -> GPU kernel from component Monitor -> GPU kernel from component vorpl -> GPU kernel from component passNL -> GPU kernel from component cav1 -> GPU kernel from component polzr -> GPU kernel from component cav2 -> GPU kernel from component guide1 -> GPU kernel from component guide2 -> GPU kernel from component smpap -> SPLIT within buffer at component repeat -> GPU kernel from component sample -> GPU kernel from component det ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./FZJ_BenchmarkSfin2.out DEBUG: CMD: nvc -o ./FZJ_BenchmarkSfin2.out ./FZJ_BenchmarkSfin2.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./FZJ_BenchmarkSfin2.c", line 4489: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./FZJ_BenchmarkSfin2.c", line 7869: warning: variable "n1" was declared but never referenced [declared_but_not_referenced] double n1,n2; ^ "./FZJ_BenchmarkSfin2.c", line 7869: warning: variable "n2" was declared but never referenced [declared_but_not_referenced] double n1,n2; ^ "/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. ^ "./FZJ_BenchmarkSfin2.c", line 8079: warning: variable "BBB" was declared but never referenced [declared_but_not_referenced] double G,P,gam,B,k,AAA,BBB,erf,QQ; ^ "./FZJ_BenchmarkSfin2.c", line 12687: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./FZJ_BenchmarkSfin2.c", line 12687: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./FZJ_BenchmarkSfin2.c", line 12714: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./FZJ_BenchmarkSfin2.c", line 12714: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./FZJ_BenchmarkSfin2.c", line 12838: 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; ^ "./FZJ_BenchmarkSfin2.c", line 12838: 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; ^ "./FZJ_BenchmarkSfin2.c", line 12838: 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; ^ "./FZJ_BenchmarkSfin2.c", line 12838: 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; ^ "./FZJ_BenchmarkSfin2.c", line 12838: 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; ^ "./FZJ_BenchmarkSfin2.c", line 12838: 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; ^ "./FZJ_BenchmarkSfin2.c", line 13195: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./FZJ_BenchmarkSfin2.c", line 14367: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./FZJ_BenchmarkSfin2.c", line 14443: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./FZJ_BenchmarkSfin2.c", line 15381: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./FZJ_BenchmarkSfin2.c", line 15390: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./FZJ_BenchmarkSfin2.c", line 16808: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./FZJ_BenchmarkSfin2.c", line 16809: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./FZJ_BenchmarkSfin2.c", line 17909: warning: variable "edge" was declared but never referenced [declared_but_not_referenced] double edge; ^ "./FZJ_BenchmarkSfin2.c", line 17910: warning: variable "n1" was declared but never referenced [declared_but_not_referenced] double n1, n2; ^ "./FZJ_BenchmarkSfin2.c", line 17910: warning: variable "n2" was declared but never referenced [declared_but_not_referenced] double n1, n2; ^ "./FZJ_BenchmarkSfin2.c", line 18354: warning: variable "thmax" was set but never used [set_but_not_used] double qmax,qmaxl,Ymax,Xmax,thmax; ^ "./FZJ_BenchmarkSfin2.c", line 19898: warning: variable "Qdx" was declared but never referenced [declared_but_not_referenced] double Qxx,Qyy,Qdx,Qdy; ^ "./FZJ_BenchmarkSfin2.c", line 19898: warning: variable "Qdy" was declared but never referenced [declared_but_not_referenced] double Qxx,Qyy,Qdx,Qdy; ^ "./FZJ_BenchmarkSfin2.c", line 21337: warning: variable "x" was declared but never referenced [declared_but_not_referenced] double x; ^ "./FZJ_BenchmarkSfin2.c", line 21338: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./FZJ_BenchmarkSfin2.c", line 21516: warning: variable "radius" was declared but never referenced [declared_but_not_referenced] double radius = 0; ^ "./FZJ_BenchmarkSfin2.c", line 21517: warning: variable "h" was declared but never referenced [declared_but_not_referenced] double h = 0; ^ "./FZJ_BenchmarkSfin2.c", line 22015: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./FZJ_BenchmarkSfin2.c", line 22016: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./FZJ_BenchmarkSfin2.c", line 1498: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./FZJ_BenchmarkSfin2.c", line 2901: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 89, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 103, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 136, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 161, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 184, 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: 1545, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1549, Generating acc routine seq Generating NVIDIA GPU code str_len: 1558, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4110, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4541, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4552, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4585, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4652, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4698, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4733, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4744, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4761, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4772, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4788, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4817, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4828, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4832, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5009, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5040, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5057, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5156, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5240, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5306, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5383, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5655, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5665, Generating acc routine seq Generating NVIDIA GPU code _hash: 5691, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5732, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5743, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5748, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5756, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5764, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5771, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6428, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6524, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6541, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6656, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6711, Generating acc routine seq Generating NVIDIA GPU code Polarizer_guide_Trace: 7866, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_min: 7942, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_max: 7946, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_imin: 7950, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_imax: 7954, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code gamma: 7959, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code errf: 8007, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code J1: 8039, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code dSigdW: 8068, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9796, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 9864, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9943, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10411, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10427, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10445, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 10511, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 10570, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11683, Generating acc routine seq Generating NVIDIA GPU code off_F: 12795, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12800, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12810, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12836, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 12899, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13030, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13075, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 13192, Generating acc routine seq Generating NVIDIA GPU code off_compare: 13310, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 13322, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 13357, Generating acc routine seq Generating NVIDIA GPU code Min_int: 13608, Generating acc routine seq Generating NVIDIA GPU code merge: 13615, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13719, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13734, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13788, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 13905, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13927, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 14087, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 14114, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 14128, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 14140, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 14147, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 14172, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 14199, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 14224, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 14235, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 14246, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 14291, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 14342, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 14349, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 14356, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 14363, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 14373, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 14383, Generating acc routine seq Generating NVIDIA GPU code init: 16684, Generating update device(_instrument_var,_smpap_var,_repeat_var,_passNL_var,_Bender1_var,_Bender2_var,_vorpl_var,_source_var,_origin_var,_Monitor_var,_pbar_var,_cav1_var,_det_var,_guide1_var,_sample_var,_polzr_var,_rspin_var,_cav2_var,_guide2_var) class_ESS_butterfly_trace: 16726, Generating acc routine seq Generating NVIDIA GPU code class_Set_pol_trace: 17013, Generating acc routine seq Generating NVIDIA GPU code class_Progress_bar_trace: 17074, Generating acc routine seq Generating NVIDIA GPU code class_Bender_trace: 17164, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17367, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 17657, Generating acc routine seq Generating NVIDIA GPU code class_CavitiesIn_trace: 17810, Generating acc routine seq Generating NVIDIA GPU code class_Transmission_polarisatorABSnT_trace: 17860, Generating acc routine seq Generating NVIDIA GPU code 17961, Reference argument passing prevents parallelization: dt Reference argument passing prevents parallelization: dt0 class_CavitiesOut_trace: 18235, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 18283, Generating acc routine seq Generating NVIDIA GPU code class_SANS_benchmark2_trace: 18327, Generating acc routine seq Generating NVIDIA GPU code class_TOFSANSdet_trace: 18602, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18849, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 19271, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 19285, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 19271, Local memory used for .inl_particle_19947,particleN,.inl_.inl_mcneutron_0_19962,.inl_.X2414_19964,.inl_.inl_.X2624_15_19963 19285, Generating implicit firstprivate(seed,_particle) finally: 20748, Generating update self(_instrument_var,_smpap_var,_repeat_var,_passNL_var,_Bender1_var,_Bender2_var,_source_var,_vorpl_var,_origin_var,_Monitor_var,_pbar_var,_cav1_var,_det_var,_guide1_var,_sample_var,_polzr_var,_rspin_var,_cav2_var,_guide2_var) mcenabletrace: 5890, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===