INFO: No output directory specified (--dir) INFO: Using directory: "ILL_D4_20241222_063433" INFO: Regenerating c-file: ILL_D4.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./ILL_D4.c ILL_D4.instr 2024-12-22 06:34:57.355 | 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 :Isotropic_Sqw(0):read_table-lib :Isotropic_Sqw(1):interoff-lib 2024-12-22 06:34:57.355 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 06:34:57.355 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 06:34:57.356 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2024-12-22 06:34:57.356 | 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 06:35:00.673 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1259,4 2024-12-22 06:35:00.674 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - MPI_MASTER( 2024-12-22 06:35:00.674 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->verbose_output > 0) { 2024-12-22 06:35:00.674 | 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 06:35:00.674 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - Sqw->compname, file, T); 2024-12-22 06:35:00.674 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-22 06:35:00.674 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~^ missing '}' at ')' 2024-12-22 06:35:00.674 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2024-12-22 06:35:00.674 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } line 1263:2 mismatched input 'if' expecting 2024-12-22 06:35:00.680 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1263,2 2024-12-22 06:35:00.681 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-22 06:35:00.681 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-22 06:35:00.681 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-22 06:35:00.681 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-22 06:35:00.681 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->Temperature == 0) { 2024-12-22 06:35:00.681 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ mismatched input 'if' expecting 2024-12-22 06:35:00.681 | 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 06:35:00.681 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } else if (Sqw->Temperature ==-1) { 2024-12-22 06:35:00.769 | 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 8 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component Monok -> SPLIT 10 at component Sample ----------------------------------------------------------- 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 Sample -> GPU kernel from component BananaTheta -> GPU kernel from component BananaPSD ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./ILL_D4.out DEBUG: CMD: nvc -o ./ILL_D4.out ./ILL_D4.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_D4.c", line 4498: 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_D4.c", line 8074: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./ILL_D4.c", line 8053: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./ILL_D4.c", line 8054: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./ILL_D4.c", line 7965: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_D4.c", line 7965: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_D4.c", line 12953: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_D4.c", line 12953: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_D4.c", line 12980: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_D4.c", line 12980: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_D4.c", line 13104: 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_D4.c", line 13104: 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_D4.c", line 13104: 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_D4.c", line 13104: 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_D4.c", line 13104: 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_D4.c", line 13104: 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_D4.c", line 13461: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ILL_D4.c", line 14374: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_D4.c", line 17383: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./ILL_D4.c", line 17384: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_D4.c", line 17384: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_D4.c", line 20182: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_D4.c", line 20183: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_D4.c", line 1506: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_D4.c", line 2909: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 139, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 165, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 189, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 201, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 210, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 222, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1553, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1557, Generating acc routine seq Generating NVIDIA GPU code str_len: 1566, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4119, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4550, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4622, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4654, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4661, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4707, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4742, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4753, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4770, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4781, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4797, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4826, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4837, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4841, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5018, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5049, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5066, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5165, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5249, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5315, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5392, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5664, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5674, Generating acc routine seq Generating NVIDIA GPU code _hash: 5700, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5741, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5752, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5757, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5773, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5780, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6437, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6533, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6550, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6665, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6720, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7425, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7435, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 7855, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 7892, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 7928, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10288, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10356, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10435, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10903, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10919, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10937, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11934, Generating acc routine seq Generating NVIDIA GPU code off_F: 13061, Generating acc routine seq Generating NVIDIA GPU code off_sign: 13066, Generating acc routine seq Generating NVIDIA GPU code off_normal: 13076, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 13102, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13165, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13296, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13341, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 13458, Generating acc routine seq Generating NVIDIA GPU code off_compare: 13576, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 13588, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 13623, Generating acc routine seq Generating NVIDIA GPU code Min_int: 13874, Generating acc routine seq Generating NVIDIA GPU code merge: 13881, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13985, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 14000, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 14054, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14171, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14193, Generating acc routine seq Generating NVIDIA GPU code init: 16192, Generating update device(_Monok_var,_Sample_var,_Origin_var,_BananaTheta_var,_instrument_var,_Lmon2_var,_mono_out_var,_mono_cradle_var,_Lmon1_var,_PSD_var,_Sample_mon_var,_BananaPSD_var,_Source_var) class_Progress_bar_trace: 16233, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16323, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 16532, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 16603, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 16677, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17022, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 17312, Generating acc routine seq Generating NVIDIA GPU code 17631, 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 raytrace: 17950, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18257, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18271, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18257, Local memory used for .inl_particle_20037,particleN,.inl_.inl_mcneutron_0_20052,.inl_.X2278_20054,.inl_.inl_.X2481_15_20053 18271, Generating implicit firstprivate(seed,_particle) finally: 19317, Generating update self(_Monok_var,_Sample_var,_Origin_var,_BananaTheta_var,_instrument_var,_Lmon2_var,_mono_out_var,_mono_cradle_var,_Lmon1_var,_PSD_var,_Sample_mon_var,_BananaPSD_var,_Source_var) mcenabletrace: 5899, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatKysSgS7cjOZiw.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: ===