INFO: No output directory specified (--dir) INFO: Using directory: "ILL_IN5_Mantid_20240919_015745" INFO: Regenerating c-file: ILL_IN5_Mantid.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ILL_IN5_Mantid.c ILL_IN5_Mantid.instr Info: 'PSD_Detector' is a contributed component. CFLAGS= WARNING: The parameter powder_format of sampleMantid 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: -> SPLIT N at component sampleMantid ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component sampleMantid ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./ILL_IN5_Mantid.out DEBUG: CMD: nvc -o ./ILL_IN5_Mantid.out ./ILL_IN5_Mantid.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_IN5_Mantid.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_Mantid.c", line 10919: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_IN5_Mantid.c", line 10919: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_IN5_Mantid.c", line 10946: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_IN5_Mantid.c", line 10946: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_IN5_Mantid.c", line 11274: 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_Mantid.c", line 11274: 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_Mantid.c", line 11274: 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_Mantid.c", line 11274: 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_Mantid.c", line 11274: 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_Mantid.c", line 11274: 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_Mantid.c", line 11631: 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_Mantid.c", line 13122: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./ILL_IN5_Mantid.c", line 13101: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./ILL_IN5_Mantid.c", line 13102: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./ILL_IN5_Mantid.c", line 13013: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_IN5_Mantid.c", line 13013: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_IN5_Mantid.c", line 15251: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_IN5_Mantid.c", line 15239: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ILL_IN5_Mantid.c", line 15292: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ILL_IN5_Mantid.c", line 15382: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ILL_IN5_Mantid.c", line 15431: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ILL_IN5_Mantid.c", line 15495: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ILL_IN5_Mantid.c", line 15566: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ILL_IN5_Mantid.c", line 15637: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ILL_IN5_Mantid.c", line 15701: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ILL_IN5_Mantid.c", line 15772: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ILL_IN5_Mantid.c", line 15836: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ILL_IN5_Mantid.c", line 15907: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ILL_IN5_Mantid.c", line 15978: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ILL_IN5_Mantid.c", line 16049: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ILL_IN5_Mantid.c", line 16113: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ILL_IN5_Mantid.c", line 16184: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ILL_IN5_Mantid.c", line 16248: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ILL_IN5_Mantid.c", line 16319: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ILL_IN5_Mantid.c", line 16383: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ILL_IN5_Mantid.c", line 16454: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ILL_IN5_Mantid.c", line 16518: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ILL_IN5_Mantid.c", line 16589: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ILL_IN5_Mantid.c", line 16660: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ILL_IN5_Mantid.c", line 16762: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./ILL_IN5_Mantid.c", line 16811: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./ILL_IN5_Mantid.c", line 16908: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./ILL_IN5_Mantid.c", line 16957: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./ILL_IN5_Mantid.c", line 17059: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./ILL_IN5_Mantid.c", line 17161: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./ILL_IN5_Mantid.c", line 17254: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./ILL_IN5_Mantid.c", line 17340: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 30; ^ "./ILL_IN5_Mantid.c", line 18849: warning: variable "j" was declared but never referenced [declared_but_not_referenced] long i,j; ^ "./ILL_IN5_Mantid.c", line 20581: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./ILL_IN5_Mantid.c", line 20582: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_IN5_Mantid.c", line 20582: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_IN5_Mantid.c", line 21189: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./ILL_IN5_Mantid.c", line 21190: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./ILL_IN5_Mantid.c", line 21193: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./ILL_IN5_Mantid.c", line 21196: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./ILL_IN5_Mantid.c", line 21200: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./ILL_IN5_Mantid.c", line 21202: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./ILL_IN5_Mantid.c", line 21203: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./ILL_IN5_Mantid.c", line 21204: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./ILL_IN5_Mantid.c", line 21206: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./ILL_IN5_Mantid.c", line 22151: warning: variable "pp" was set but never used [set_but_not_used] double pp,P2; ^ "./ILL_IN5_Mantid.c", line 25697: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_IN5_Mantid.c", line 25698: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_IN5_Mantid.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_IN5_Mantid.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: 7741, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7809, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7888, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8356, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8372, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8390, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8437, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 8541, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 8600, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9915, Generating acc routine seq Generating NVIDIA GPU code off_F: 11231, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11236, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11246, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11272, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11335, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11466, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11511, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11628, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11746, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11758, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11793, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12044, Generating acc routine seq Generating NVIDIA GPU code merge: 12051, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12155, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12170, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12224, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12341, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12363, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 12903, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 12940, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 12976, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 14559, Generating acc routine seq Generating NVIDIA GPU code PSD_He_interp1value: 14608, Generating acc routine seq Generating NVIDIA GPU code init: 19545, Generating update device(_arm2_var,_sourceMantid_var,_sampleMantid_var,_Guide45_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_PSD_var,_SourceTarget_var,_nD_Mantid_0_var,_arm_var,_instrument_var,_Collimator_var,_center_det_var,_Cp_0_var,_hous_var,_in5_t_var) class_Progress_bar_trace: 19590, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 19680, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 19889, Generating acc routine seq Generating NVIDIA GPU code class_Guide_channeled_trace: 19979, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 20220, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 20510, Generating acc routine seq Generating NVIDIA GPU code 20829, 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: 21141, Generating acc routine seq Generating NVIDIA GPU code class_PSD_Detector_trace: 21603, Generating acc routine seq Generating NVIDIA GPU code raytrace: 22263, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 22919, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 22930, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 22919, Local memory used for .inl_particle_28130,particleN,.inl_.inl_mcneutron_0_28145,.inl_.X2405_28147,.inl_.inl_.X2614_15_28146 22930, Generating implicit firstprivate(seed,_particle) finally: 24385, Generating update self(_arm2_var,_sourceMantid_var,_sampleMantid_var,_Guide45_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_PSD_var,_SourceTarget_var,_nD_Mantid_0_var,_arm_var,_instrument_var,_Collimator_var,_center_det_var,_Cp_0_var,_hous_var,_in5_t_var) mcenabletrace: 5887, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcDn1qx57Jmunc.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-09-19/McStas_8GPU_openacc_5e6_Linux_5e6/ILL_IN5_Mantid/./ILL_IN5_Mantid.c:14284: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===