INFO: No output directory specified (--dir) INFO: Using directory: "ILL_IN5_20240919_013813" INFO: Regenerating c-file: ILL_IN5.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ILL_IN5.c ILL_IN5.instr Info: 'PSD_Detector' is a contributed component. CFLAGS= WARNING: The parameter powder_format of SAMPLE 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. WARNING: The parameter format of hous 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: ./ILL_IN5.out DEBUG: CMD: nvc -o ./ILL_IN5.out ./ILL_IN5.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_IN5.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./ILL_IN5.c", line 10912: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_IN5.c", line 10912: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_IN5.c", line 10939: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_IN5.c", line 10939: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_IN5.c", line 11267: 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; ^ "./ILL_IN5.c", line 11267: 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; ^ "./ILL_IN5.c", line 11267: 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; ^ "./ILL_IN5.c", line 11267: 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; ^ "./ILL_IN5.c", line 11267: 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; ^ "./ILL_IN5.c", line 11267: 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; ^ "./ILL_IN5.c", line 11624: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "/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. ^ "./ILL_IN5.c", line 13115: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./ILL_IN5.c", line 13094: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./ILL_IN5.c", line 13095: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./ILL_IN5.c", line 13006: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_IN5.c", line 13006: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_IN5.c", line 15241: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_IN5.c", line 15229: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ILL_IN5.c", line 15282: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ILL_IN5.c", line 15372: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ILL_IN5.c", line 15421: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ILL_IN5.c", line 15485: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ILL_IN5.c", line 15556: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ILL_IN5.c", line 15627: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ILL_IN5.c", line 15691: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ILL_IN5.c", line 15762: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ILL_IN5.c", line 15826: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ILL_IN5.c", line 15897: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ILL_IN5.c", line 15968: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ILL_IN5.c", line 16039: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ILL_IN5.c", line 16103: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ILL_IN5.c", line 16174: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ILL_IN5.c", line 16238: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ILL_IN5.c", line 16309: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ILL_IN5.c", line 16373: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ILL_IN5.c", line 16444: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ILL_IN5.c", line 16508: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ILL_IN5.c", line 16579: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ILL_IN5.c", line 16650: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ILL_IN5.c", line 16752: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./ILL_IN5.c", line 16801: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./ILL_IN5.c", line 16898: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./ILL_IN5.c", line 16947: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./ILL_IN5.c", line 17049: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./ILL_IN5.c", line 17142: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./ILL_IN5.c", line 17228: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./ILL_IN5.c", line 18737: warning: variable "j" was declared but never referenced [declared_but_not_referenced] long i,j; ^ "./ILL_IN5.c", line 20465: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./ILL_IN5.c", line 20466: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_IN5.c", line 20466: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_IN5.c", line 21073: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./ILL_IN5.c", line 21074: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./ILL_IN5.c", line 21077: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./ILL_IN5.c", line 21080: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./ILL_IN5.c", line 21084: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./ILL_IN5.c", line 21086: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./ILL_IN5.c", line 21087: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./ILL_IN5.c", line 21088: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./ILL_IN5.c", line 21090: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./ILL_IN5.c", line 22035: warning: variable "pp" was set but never used [set_but_not_used] double pp,P2; ^ "./ILL_IN5.c", line 25508: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_IN5.c", line 25509: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_IN5.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_IN5.c", line 2898: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 88, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 102, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 134, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 158, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 180, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 191, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 200, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 210, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1542, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1546, Generating acc routine seq Generating NVIDIA GPU code str_len: 1555, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4107, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4538, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4558, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4602, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4620, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4642, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4649, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4695, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4758, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4785, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4814, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4825, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4829, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5006, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5037, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5054, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5153, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5237, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5303, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5380, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5652, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5662, Generating acc routine seq Generating NVIDIA GPU code _hash: 5688, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5729, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5740, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5745, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5761, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5768, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6427, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6463, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6523, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6540, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6655, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7734, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7802, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7881, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8349, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8365, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8383, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8430, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 8534, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 8593, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9908, Generating acc routine seq Generating NVIDIA GPU code off_F: 11224, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11229, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11239, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11265, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11328, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11459, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11504, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11621, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11739, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11751, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11786, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12037, Generating acc routine seq Generating NVIDIA GPU code merge: 12044, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12148, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12163, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12217, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12334, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12356, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 12896, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 12933, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 12969, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 14552, Generating acc routine seq Generating NVIDIA GPU code PSD_He_interp1value: 14601, Generating acc routine seq Generating NVIDIA GPU code init: 19429, Generating update device(_arm2_var,_SourceTarget_var,_SAMPLE_var,_Det_sample_t_var,_Guide1_var,_Chopper0_var,_Guide21_var,_Chopper1_var,_Guide22_var,_Guide23_var,_Guide3_var,_Chopper2_var,_Guide41_var,_Chopper3_var,_Guide42_var,_Chopper4_var,_Guide43_var,_Chopper5_var,_Guide44_var,_Chopper6_var,_Det_ideal_ay_var,_VCS_var,_Guide45_var,_arm_var,_Det_PSD_var,_center_det_var,_Collimator_var,_hous_var,_instrument_var,_in5_t_var) class_Progress_bar_trace: 19474, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 19564, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 19773, Generating acc routine seq Generating NVIDIA GPU code class_Guide_channeled_trace: 19863, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 20104, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 20394, Generating acc routine seq Generating NVIDIA GPU code 20713, Reference argument passing prevents parallelization: u1z Reference argument passing prevents parallelization: u1y Reference argument passing prevents parallelization: u1x Reference argument passing prevents parallelization: solid_angle class_PowderN_trace: 21025, Generating acc routine seq Generating NVIDIA GPU code class_PSD_Detector_trace: 21487, Generating acc routine seq Generating NVIDIA GPU code raytrace: 22147, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 22764, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 22775, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 22764, Local memory used for .inl_particle_27811,particleN,.inl_.inl_mcneutron_0_27826,.inl_.X2402_27828,.inl_.inl_.X2611_15_27827 22775, Generating implicit firstprivate(seed,_particle) finally: 24202, Generating update self(_arm2_var,_SourceTarget_var,_SAMPLE_var,_Det_sample_t_var,_Guide1_var,_Chopper0_var,_Guide21_var,_Chopper1_var,_Guide22_var,_Guide23_var,_Guide3_var,_Chopper2_var,_Guide41_var,_Chopper3_var,_Guide42_var,_Chopper4_var,_Guide43_var,_Chopper5_var,_Guide44_var,_Chopper6_var,_Det_ideal_ay_var,_VCS_var,_Guide45_var,_arm_var,_Det_PSD_var,_center_det_var,_Collimator_var,_hous_var,_instrument_var,_in5_t_var) mcenabletrace: 5887, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcQzrq_SBgZWOJ.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-09-19/McStas_8GPU_openacc_5e6_Linux_5e6/ILL_IN5/./ILL_IN5.c:14277: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===