INFO: No output directory specified (--dir) INFO: Using directory: "ILL_Lagrange_20241121_014531" INFO: Regenerating c-file: ILL_Lagrange.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ILL_Lagrange.c ILL_Lagrange.instr Warning: Component Analyser=Monochromator_curved() at line ILL_Lagrange.instr:257 is 1st in GROUP POSTsample and has a SPLIT. Best practice is to move the SPLIT to an earlier component. CFLAGS= --> Added COMPONENT Monok USERVAR ncol_6 with type int --> Added COMPONENT Monok USERVAR nrow_6 with type int --> Added COMPONENT Analyser USERVAR ncol_19 with type int --> Added COMPONENT Analyser USERVAR nrow_19 with type int WARNING: The parameter format of cryostat_in 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 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. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component Monok -> SPLIT N at component SamplePosition -> SPLIT N at component Analyser ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component Monok -> SPLIT within buffer at component SamplePosition -> SPLIT within buffer at component Analyser ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./ILL_Lagrange.out DEBUG: CMD: nvc -o ./ILL_Lagrange.out ./ILL_Lagrange.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_Lagrange.c", line 4541: 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_Lagrange.c", line 10697: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_Lagrange.c", line 10697: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_Lagrange.c", line 10724: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_Lagrange.c", line 10724: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_Lagrange.c", line 11052: 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_Lagrange.c", line 11052: 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_Lagrange.c", line 11052: 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_Lagrange.c", line 11052: 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_Lagrange.c", line 11052: 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_Lagrange.c", line 11052: 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_Lagrange.c", line 11409: 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_Lagrange.c", line 13311: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./ILL_Lagrange.c", line 13290: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./ILL_Lagrange.c", line 13291: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./ILL_Lagrange.c", line 13202: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_Lagrange.c", line 13202: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_Lagrange.c", line 14970: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_Lagrange.c", line 14958: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ILL_Lagrange.c", line 15011: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ILL_Lagrange.c", line 15101: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ILL_Lagrange.c", line 15166: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ILL_Lagrange.c", line 15232: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ILL_Lagrange.c", line 15281: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ILL_Lagrange.c", line 15358: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ILL_Lagrange.c", line 15407: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ILL_Lagrange.c", line 15473: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ILL_Lagrange.c", line 15575: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ILL_Lagrange.c", line 15624: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ILL_Lagrange.c", line 15717: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ILL_Lagrange.c", line 15814: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ILL_Lagrange.c", line 15907: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ILL_Lagrange.c", line 16009: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ILL_Lagrange.c", line 16111: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ILL_Lagrange.c", line 16160: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ILL_Lagrange.c", line 16262: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ILL_Lagrange.c", line 16311: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ILL_Lagrange.c", line 16388: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ILL_Lagrange.c", line 16437: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ILL_Lagrange.c", line 16486: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ILL_Lagrange.c", line 16588: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./ILL_Lagrange.c", line 16664: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./ILL_Lagrange.c", line 19610: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./ILL_Lagrange.c", line 19611: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./ILL_Lagrange.c", line 19614: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./ILL_Lagrange.c", line 19617: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./ILL_Lagrange.c", line 19621: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./ILL_Lagrange.c", line 19623: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./ILL_Lagrange.c", line 19624: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./ILL_Lagrange.c", line 19625: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./ILL_Lagrange.c", line 19627: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./ILL_Lagrange.c", line 20127: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./ILL_Lagrange.c", line 20128: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_Lagrange.c", line 20128: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_Lagrange.c", line 20730: warning: variable "q" was declared but never referenced [declared_but_not_referenced] double q,qq; ^ "./ILL_Lagrange.c", line 20734: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double phi; ^ "./ILL_Lagrange.c", line 24034: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_Lagrange.c", line 24035: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_Lagrange.c", line 1550: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_Lagrange.c", line 2953: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 98, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 112, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 153, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 186, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 217, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 228, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 237, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 256, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1597, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1601, Generating acc routine seq Generating NVIDIA GPU code str_len: 1610, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4162, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4637, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4657, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4665, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4675, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4697, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4704, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4750, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4785, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4796, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4813, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4824, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4840, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4869, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4880, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4884, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5061, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5092, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5109, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5208, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5292, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5358, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5435, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5707, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5717, Generating acc routine seq Generating NVIDIA GPU code _hash: 5743, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5784, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5795, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5800, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5808, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5816, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5823, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6482, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6518, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6578, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6595, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6765, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7797, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7865, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7944, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8412, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8428, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8446, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8493, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 8502, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9693, Generating acc routine seq Generating NVIDIA GPU code off_F: 11009, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11014, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11024, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11050, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11113, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11244, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11289, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11406, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11524, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11536, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11571, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11822, Generating acc routine seq Generating NVIDIA GPU code merge: 11829, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11933, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11948, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12002, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12119, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12141, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 12637, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 13092, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 13129, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 13165, Generating acc routine seq Generating NVIDIA GPU code init: 18354, Generating update device(_Monok_var,_Sample_var,_Origin_var,_KillDirectBeam_var,_instrument_var,_Lmon2_var,_mono_out_var,_mono_cradle_var,_Lmon1_var,_SamplePosition_var,_RotateNeutron_var,_Source_var,_Sample_mon_var,_cryostat_in_var,_Barrel_PSD_monitor3_var,_Analyser_var,_PSD_var,_Barrel_PSD_monitor2_var,_AnalyserMount_var,_Detector_var,_Barrel_PSD_monitor_var,_Detector_Sqw_var,_Detector_Sqw_env_var,_DetectorMount_var,_cryostat_out_var) class_Progress_bar_trace: 18397, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 18487, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 18696, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 18767, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 18840, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 18904, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 19272, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 19562, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 20056, Generating acc routine seq Generating NVIDIA GPU code 20375, 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_Sqw_monitor_trace: 20705, Generating acc routine seq Generating NVIDIA GPU code raytrace: 20852, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 21406, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 21420, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 21406, Local memory used for .inl_particle_25980,particleN,.inl_.inl_mcneutron_0_25995,.inl_.X2410_25997,.inl_.inl_.X2616_15_25996 21420, Generating implicit firstprivate(seed,_particle) finally: 22892, Generating update self(_Monok_var,_Sample_var,_Origin_var,_KillDirectBeam_var,_instrument_var,_Lmon2_var,_mono_out_var,_mono_cradle_var,_Lmon1_var,_SamplePosition_var,_RotateNeutron_var,_Source_var,_Sample_mon_var,_cryostat_in_var,_Barrel_PSD_monitor3_var,_Analyser_var,_PSD_var,_Barrel_PSD_monitor2_var,_AnalyserMount_var,_Detector_var,_Barrel_PSD_monitor_var,_Detector_Sqw_var,_Detector_Sqw_env_var,_DetectorMount_var,_cryostat_out_var) mcenabletrace: 5942, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcPN7B71a-UjQz.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-11-21/McStas_8GPU_openacc_1e7_Linux_1e7/ILL_Lagrange/./ILL_Lagrange.c:12362: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===