INFO: No output directory specified (--dir) INFO: Using directory: "Test_DiskChoppers2_20241118_025404" INFO: Regenerating c-file: Test_DiskChoppers2.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_DiskChoppers2.c Test_DiskChoppers2.instr CFLAGS= --> Added COMPONENT R USERVAR Rot_8 with type Rotation WARNING: --> USERVAR Rot_8 is of type Rotation and may need specific --> per-particle initialisation through an --> EXTEND block! WARNING: The parameter format of Slab1 is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas 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 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 " "./Test_DiskChoppers2.c", line 8733: 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 8733: 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 8733: 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 8733: 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 8733: 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 8733: 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 9090: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_DiskChoppers2.c", line 10897: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_DiskChoppers2.c", line 10885: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_DiskChoppers2.c", line 10938: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_DiskChoppers2.c", line 11028: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_DiskChoppers2.c", line 11077: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_DiskChoppers2.c", line 11141: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_DiskChoppers2.c", line 11234: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_DiskChoppers2.c", line 11283: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_DiskChoppers2.c", line 11332: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_DiskChoppers2.c", line 11386: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_DiskChoppers2.c", line 11435: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_DiskChoppers2.c", line 11493: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_DiskChoppers2.c", line 11586: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Test_DiskChoppers2.c", line 11635: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Test_DiskChoppers2.c", line 11689: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Test_DiskChoppers2.c", line 11758: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Test_DiskChoppers2.c", line 11825: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./Test_DiskChoppers2.c", line 13555: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./Test_DiskChoppers2.c", line 13556: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./Test_DiskChoppers2.c", line 13559: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./Test_DiskChoppers2.c", line 13562: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./Test_DiskChoppers2.c", line 13566: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./Test_DiskChoppers2.c", line 13568: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./Test_DiskChoppers2.c", line 13569: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./Test_DiskChoppers2.c", line 13570: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./Test_DiskChoppers2.c", line 13572: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./Test_DiskChoppers2.c", line 14159: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./Test_DiskChoppers2.c", line 16235: warning: variable "ih" was declared but never referenced [declared_but_not_referenced] int ih; ^ "./Test_DiskChoppers2.c", line 16724: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_DiskChoppers2.c", line 16725: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_DiskChoppers2.c", line 1501: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_DiskChoppers2.c", line 2904: 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: 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: 1548, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1552, Generating acc routine seq Generating NVIDIA GPU code str_len: 1561, 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: 6433, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6469, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6529, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6546, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6661, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6716, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7743, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7811, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7890, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8358, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8374, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8392, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8439, Generating acc routine seq Generating NVIDIA GPU code off_F: 8690, Generating acc routine seq Generating NVIDIA GPU code off_sign: 8695, Generating acc routine seq Generating NVIDIA GPU code off_normal: 8705, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 8731, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 8794, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 8925, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 8970, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 9087, Generating acc routine seq Generating NVIDIA GPU code off_compare: 9205, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 9217, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 9252, Generating acc routine seq Generating NVIDIA GPU code Min_int: 9503, Generating acc routine seq Generating NVIDIA GPU code merge: 9510, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 9614, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 9629, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 9683, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 9800, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 9822, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 10313, Generating acc routine seq Generating NVIDIA GPU code init: 13031, 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: 13074, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 13164, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 13380, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 13417, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 13507, Generating acc routine seq Generating NVIDIA GPU code class_Rotator_trace: 13988, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 14051, Generating acc routine seq Generating NVIDIA GPU code class_Derotator_trace: 14095, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 14134, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 14222, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14303, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14379, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14750, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14764, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14750, Local memory used for .inl_particle_17601,particleN,.inl_.inl_mcneutron_0_17616,.inl_.X2117_17618,.inl_.inl_.X2324_15_17617 14764, Generating implicit firstprivate(seed,_particle) finally: 15766, 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: 16494, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code mcenabletrace: 5893, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcQQlnl_5STVt7P.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-11-18/McStas_8GPU_openacc_5e6_Linux_5e6/Test_DiskChoppers2/./Test_DiskChoppers2.c:10038: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===