INFO: No output directory specified (--dir) INFO: Using directory: "ILL_Lagrange_20241222_081421" INFO: Regenerating c-file: ILL_Lagrange.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./ILL_Lagrange.c ILL_Lagrange.instr 2024-12-22 08:14:52.199 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Monochromator_curved(0):read_table-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib :PowderN(0):read_table-lib :PowderN(1):interoff-lib :Isotropic_Sqw(0):read_table-lib :Isotropic_Sqw(1):interoff-lib 2024-12-22 08:14:52.200 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 08:14:52.200 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2024-12-22 08:14:52.200 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 08:14:52.200 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 08:14:52.200 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib line 1259:4 missing '}' at ')' 2024-12-22 08:14:56.091 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1259,4 2024-12-22 08:14:56.092 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - MPI_MASTER( 2024-12-22 08:14:56.092 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->verbose_output > 0) { 2024-12-22 08:14:56.092 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - printf( "Isotropic_Sqw: %s: Temperature computed from S(q,w) data from %s is T=%g [K].\n", 2024-12-22 08:14:56.092 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - Sqw->compname, file, T); 2024-12-22 08:14:56.092 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-22 08:14:56.092 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~^ missing '}' at ')' 2024-12-22 08:14:56.092 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2024-12-22 08:14:56.092 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } line 1263:2 mismatched input 'if' expecting 2024-12-22 08:14:56.099 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1263,2 2024-12-22 08:14:56.099 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-22 08:14:56.099 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-22 08:14:56.099 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-22 08:14:56.099 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-22 08:14:56.099 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->Temperature == 0) { 2024-12-22 08:14:56.099 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ mismatched input 'if' expecting 2024-12-22 08:14:56.099 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - Sqw->Temperature = T_file ? T_file : T; /* 0: not set: we use file value, else computed */ 2024-12-22 08:14:56.099 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } else if (Sqw->Temperature ==-1) { 2024-12-22 08:14:56.186 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:341 - Could not convert an integer from ('CHAR_BUF_LENGTH',) due to invalid literal for int() with base 10: 'CHAR_BUF_LENGTH' The instrument has 9 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component Monok -> SPLIT 10 at component SamplePosition -> SPLIT 10 at component Analyser ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Source -> GPU kernel from component PSD -> GPU kernel from component Lmon1 -> GPU kernel from component mono_cradle -> SPLIT within buffer at component Monok -> GPU kernel from component mono_out -> GPU kernel from component Lmon2 -> GPU kernel from component Sample_mon -> SPLIT within buffer at component SamplePosition -> GPU kernel from component cryostat_in -> GPU kernel from component Sample -> GPU kernel from component cryostat_out -> GPU kernel from component Barrel_PSD_monitor -> GPU kernel from component Barrel_PSD_monitor2 -> GPU kernel from component RotateNeutron -> GPU kernel from component Barrel_PSD_monitor3 -> GPU kernel from component AnalyserMount -> SPLIT within buffer at component Analyser -> GPU kernel from component KillDirectBeam -> GPU kernel from component DetectorMount -> GPU kernel from component Detector -> GPU kernel from component Detector_Sqw -> GPU kernel from component Detector_Sqw_env ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./ILL_Lagrange.out DEBUG: CMD: nvc -o ./ILL_Lagrange.out ./ILL_Lagrange.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_Lagrange.c", line 4540: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "/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 8532: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./ILL_Lagrange.c", line 8511: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./ILL_Lagrange.c", line 8512: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./ILL_Lagrange.c", line 8423: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_Lagrange.c", line 8423: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_Lagrange.c", line 13540: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_Lagrange.c", line 13540: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_Lagrange.c", line 13567: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_Lagrange.c", line 13567: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_Lagrange.c", line 13691: 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 13691: 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 13691: 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 13691: 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 13691: 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 13691: 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 14048: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ILL_Lagrange.c", line 14961: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_Lagrange.c", line 19030: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./ILL_Lagrange.c", line 19031: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./ILL_Lagrange.c", line 19034: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./ILL_Lagrange.c", line 19037: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./ILL_Lagrange.c", line 19041: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./ILL_Lagrange.c", line 19043: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./ILL_Lagrange.c", line 19044: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./ILL_Lagrange.c", line 19045: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./ILL_Lagrange.c", line 19047: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./ILL_Lagrange.c", line 19541: 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 19542: 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 19542: 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 20136: warning: variable "q" was declared but never referenced [declared_but_not_referenced] double q,qq; ^ "./ILL_Lagrange.c", line 20140: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double phi; ^ "./ILL_Lagrange.c", line 23326: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_Lagrange.c", line 23327: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_Lagrange.c", line 1548: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_Lagrange.c", line 2951: 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: 229, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 238, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 257, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1595, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1599, Generating acc routine seq Generating NVIDIA GPU code str_len: 1608, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4161, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4603, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4612, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4624, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4636, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4656, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4664, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4674, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4696, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4703, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4749, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4784, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4795, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4812, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4823, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4839, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4868, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4879, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4883, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5060, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5091, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5108, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5207, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5291, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5357, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5434, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5706, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5716, Generating acc routine seq Generating NVIDIA GPU code _hash: 5742, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5783, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5794, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5799, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5807, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5815, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5822, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6479, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6575, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6592, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6707, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6762, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7471, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7481, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 7859, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 8313, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 8350, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 8386, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10875, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10943, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 11022, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11490, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11506, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11524, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 12521, Generating acc routine seq Generating NVIDIA GPU code off_F: 13648, Generating acc routine seq Generating NVIDIA GPU code off_sign: 13653, Generating acc routine seq Generating NVIDIA GPU code off_normal: 13663, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 13689, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13752, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13883, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13928, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 14045, Generating acc routine seq Generating NVIDIA GPU code off_compare: 14163, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 14175, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 14210, Generating acc routine seq Generating NVIDIA GPU code Min_int: 14461, Generating acc routine seq Generating NVIDIA GPU code merge: 14468, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 14572, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 14587, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 14641, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14758, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14780, Generating acc routine seq Generating NVIDIA GPU code init: 17780, 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: 17821, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 17911, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 18120, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 18191, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 18264, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 18324, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 18692, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 18982, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 19470, Generating acc routine seq Generating NVIDIA GPU code 19789, 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: 20111, Generating acc routine seq Generating NVIDIA GPU code raytrace: 20259, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 20810, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 20824, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 20810, Local memory used for .inl_particle_25889,particleN,.inl_.inl_mcneutron_0_25904,.inl_.X2415_25906,.inl_.inl_.X2621_15_25905 20824, Generating implicit firstprivate(seed,_particle) finally: 22261, 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: 5941, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: /tmp/nvc77I2gXF1vpN65.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-12-22/ANTLR_openacc_1e7_Linux_1e7/ILL_Lagrange/./ILL_Lagrange.c:7584: warning: the use of `tmpnam' is dangerous, better use `mkstemp' /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatBaT2grjSYFBuS.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===