INFO: No output directory specified (--dir) INFO: Using directory: "Test_DiskChoppers2_20241222_101545" INFO: Regenerating c-file: Test_DiskChoppers2.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Test_DiskChoppers2.c Test_DiskChoppers2.instr 2024-12-22 10:16:13.765 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib 2024-12-22 10:16:13.765 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2024-12-22 10:16:13.765 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib WARNING: --> USERVAR Rot_8 is of type Rotation --> and may need specific per-particle initialization through an EXTEND block! No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component origin -> GPU kernel from component source_gen -> GPU kernel from component Arm0 -> GPU kernel from component diskchopper0 -> GPU kernel from component Slab1 -> GPU kernel from component diskArm -> GPU kernel from component SlitRotC -> GPU kernel from component R -> GPU kernel from component SlitArm -> GPU kernel from component Slit -> GPU kernel from component Slab2 -> GPU kernel from component slitArm -> GPU kernel from component DR -> GPU kernel from component Tofl -> GPU kernel from component Tof -> GPU kernel from component psd_monitor ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./Test_DiskChoppers2.out DEBUG: CMD: nvc -o ./Test_DiskChoppers2.out ./Test_DiskChoppers2.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 "./Test_DiskChoppers2.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 " "./Test_DiskChoppers2.c", line 9608: 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; ^ "./Test_DiskChoppers2.c", line 9608: 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; ^ "./Test_DiskChoppers2.c", line 9608: 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; ^ "./Test_DiskChoppers2.c", line 9608: 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; ^ "./Test_DiskChoppers2.c", line 9608: 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; ^ "./Test_DiskChoppers2.c", line 9608: 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; ^ "./Test_DiskChoppers2.c", line 9965: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_DiskChoppers2.c", line 10875: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_DiskChoppers2.c", line 13255: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./Test_DiskChoppers2.c", line 13256: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./Test_DiskChoppers2.c", line 13259: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./Test_DiskChoppers2.c", line 13262: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./Test_DiskChoppers2.c", line 13266: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./Test_DiskChoppers2.c", line 13268: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./Test_DiskChoppers2.c", line 13269: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./Test_DiskChoppers2.c", line 13270: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./Test_DiskChoppers2.c", line 13272: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./Test_DiskChoppers2.c", line 13859: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./Test_DiskChoppers2.c", line 15865: warning: variable "ih" was declared but never referenced [declared_but_not_referenced] int ih; ^ "./Test_DiskChoppers2.c", line 16337: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_DiskChoppers2.c", line 16338: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_DiskChoppers2.c", line 1499: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_DiskChoppers2.c", line 2902: 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: 1546, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1550, Generating acc routine seq Generating NVIDIA GPU code str_len: 1559, 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 SG_Maxwell: 7217, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7594, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8865, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8933, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9012, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9480, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9496, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9514, Generating acc routine seq Generating NVIDIA GPU code off_F: 9565, Generating acc routine seq Generating NVIDIA GPU code off_sign: 9570, Generating acc routine seq Generating NVIDIA GPU code off_normal: 9580, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 9606, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 9669, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 9800, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 9845, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9962, Generating acc routine seq Generating NVIDIA GPU code off_compare: 10080, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 10092, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 10127, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10378, Generating acc routine seq Generating NVIDIA GPU code merge: 10385, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10489, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 10504, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 10558, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 10675, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 10697, Generating acc routine seq Generating NVIDIA GPU code init: 12735, Generating update device(_instrument_var,_source_gen_var,_slitArm_var,_diskArm_var,_R_var,_Tofl_var,_SlitArm_var,_DR_var,_Slab2_var,_SlitRotC_var,_Slab1_var,_psd_monitor_var,_Arm0_var,_Tof_var,_Slit_var,_origin_var,_diskchopper0_var) class_Progress_bar_trace: 12776, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 12866, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 13080, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 13117, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 13207, Generating acc routine seq Generating NVIDIA GPU code class_Rotator_trace: 13688, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 13751, Generating acc routine seq Generating NVIDIA GPU code class_Derotator_trace: 13795, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 13834, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 13922, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14003, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14080, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14451, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14465, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14451, Local memory used for .inl_particle_17596,particleN,.inl_.inl_mcneutron_0_17611,.inl_.X2122_17613,.inl_.inl_.X2329_15_17612 14465, Generating implicit firstprivate(seed,_particle) finally: 15441, Generating update self(_instrument_var,_slitArm_var,_source_gen_var,_diskArm_var,_R_var,_Tofl_var,_SlitArm_var,_DR_var,_Slab2_var,_SlitRotC_var,_Slab1_var,_psd_monitor_var,_Arm0_var,_Tof_var,_Slit_var,_origin_var,_diskchopper0_var) _getvar_parameters: 16110, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code mcenabletrace: 5892, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvcyEEuhicwgI1s2.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-22/ANTLR_openacc_1e7_Linux_1e7/Test_DiskChoppers2/./Test_DiskChoppers2.c:7319: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatV7EuhnfVblpDy.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: ===