INFO: No output directory specified (--dir) INFO: Using directory: "Test_DiskChoppers2_20241206_135534" INFO: Regenerating c-file: Test_DiskChoppers2.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_DiskChoppers2.c Test_DiskChoppers2.instr Downloading file 'mcstas-comps/optics/Rotator.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Rotator.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/optics/Derotator.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/optics/Derotator.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 13:55:37.917 | 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-06 13:55:37.919 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib 2024-12-06 13:55:37.919 | 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 finished INFO: Recompiling: ./Test_DiskChoppers2.out DEBUG: CMD: nvc -o ./Test_DiskChoppers2.out ./Test_DiskChoppers2.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_DiskChoppers2.c", line 4490: 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 9607: 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 9607: 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 9607: 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 9607: 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 9607: 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 9607: 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 9964: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_DiskChoppers2.c", line 10874: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_DiskChoppers2.c", line 13254: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./Test_DiskChoppers2.c", line 13255: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./Test_DiskChoppers2.c", line 13258: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./Test_DiskChoppers2.c", line 13261: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./Test_DiskChoppers2.c", line 13265: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./Test_DiskChoppers2.c", line 13267: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./Test_DiskChoppers2.c", line 13268: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./Test_DiskChoppers2.c", line 13269: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./Test_DiskChoppers2.c", line 13271: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./Test_DiskChoppers2.c", line 13863: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./Test_DiskChoppers2.c", line 15869: warning: variable "ih" was declared but never referenced [declared_but_not_referenced] int ih; ^ "./Test_DiskChoppers2.c", line 16341: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_DiskChoppers2.c", line 16342: 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: 4111, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4542, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4553, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4586, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4596, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4606, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4624, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4653, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4699, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4734, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4745, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4762, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4773, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4789, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4818, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4829, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4833, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5010, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5041, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5058, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5157, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5241, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5307, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5384, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5656, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5666, Generating acc routine seq Generating NVIDIA GPU code _hash: 5692, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5733, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5744, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5749, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5757, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5765, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5772, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6429, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6525, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6542, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6657, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6712, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7216, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7593, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8864, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8932, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 9011, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9479, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9495, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9513, Generating acc routine seq Generating NVIDIA GPU code off_F: 9564, Generating acc routine seq Generating NVIDIA GPU code off_sign: 9569, Generating acc routine seq Generating NVIDIA GPU code off_normal: 9579, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 9605, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 9668, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 9799, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 9844, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9961, Generating acc routine seq Generating NVIDIA GPU code off_compare: 10079, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 10091, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 10126, Generating acc routine seq Generating NVIDIA GPU code Min_int: 10377, Generating acc routine seq Generating NVIDIA GPU code merge: 10384, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 10488, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 10503, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 10557, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 10674, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 10696, Generating acc routine seq Generating NVIDIA GPU code init: 12734, 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: 12775, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 12865, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 13079, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 13116, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 13206, Generating acc routine seq Generating NVIDIA GPU code class_Rotator_trace: 13692, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 13755, Generating acc routine seq Generating NVIDIA GPU code class_Derotator_trace: 13799, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 13838, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 13926, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14007, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14084, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14455, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14469, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14455, Local memory used for .inl_particle_17596,particleN,.inl_.inl_mcneutron_0_17611,.inl_.X2122_17613,.inl_.inl_.X2329_15_17612 14469, Generating implicit firstprivate(seed,_particle) finally: 15445, 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: 16114, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code mcenabletrace: 5891, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcRbtzmb0kUefbo.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-06/ANTLR_openacc_1e7_Linux_1e7/Test_DiskChoppers2/./Test_DiskChoppers2.c:7318: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===