INFO: No output directory specified (--dir) INFO: Using directory: "templateTOF_20241222_095153" INFO: Regenerating c-file: templateTOF.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./templateTOF.c templateTOF.instr 2024-12-22 09:52:11.343 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Isotropic_Sqw(0):read_table-lib :Isotropic_Sqw(1):interoff-lib :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-22 09:52:11.343 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 09:52:11.343 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 09:52:11.343 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib line 1259:4 missing '}' at ')' 2024-12-22 09:52:14.434 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1259,4 2024-12-22 09:52:14.435 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - MPI_MASTER( 2024-12-22 09:52:14.435 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->verbose_output > 0) { 2024-12-22 09:52:14.435 | 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 09:52:14.435 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - Sqw->compname, file, T); 2024-12-22 09:52:14.435 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-22 09:52:14.435 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~^ missing '}' at ')' 2024-12-22 09:52:14.435 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2024-12-22 09:52:14.435 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } line 1263:2 mismatched input 'if' expecting 2024-12-22 09:52:14.442 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1263,2 2024-12-22 09:52:14.442 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-22 09:52:14.442 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-22 09:52:14.442 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-22 09:52:14.442 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-22 09:52:14.442 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->Temperature == 0) { 2024-12-22 09:52:14.442 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ mismatched input 'if' expecting 2024-12-22 09:52:14.442 | 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 09:52:14.442 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } else if (Sqw->Temperature ==-1) { 2024-12-22 09:52:14.529 | 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' WARNING: --> USERVAR flag_single is of type char --> and may need specific per-particle initialization through an EXTEND block! WARNING: --> USERVAR flag_multi is of type char --> and may need specific per-particle initialization through an EXTEND block! WARNING: --> USERVAR flag_env is of type char --> and may need specific per-particle initialization through an EXTEND block! WARNING: --> USERVAR flag_container is of type char --> and may need specific per-particle initialization through an EXTEND block! The instrument has 14 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component a1 -> GPU kernel from component csource -> GPU kernel from component SampleIn -> GPU kernel from component Environment_in -> GPU kernel from component Container_in -> GPU kernel from component Sample_in -> GPU kernel from component Container_out -> GPU kernel from component Environment_out -> GPU kernel from component SampleOut -> GPU kernel from component M_total -> GPU kernel from component M_single_coh -> GPU kernel from component M_single_inc -> GPU kernel from component M_multi -> GPU kernel from component M_env_container ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./templateTOF.out DEBUG: CMD: nvc -o ./templateTOF.out ./templateTOF.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 "./templateTOF.c", line 4506: 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. ^ "./templateTOF.c", line 8075: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./templateTOF.c", line 8054: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./templateTOF.c", line 8055: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./templateTOF.c", line 7966: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./templateTOF.c", line 7966: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./templateTOF.c", line 12838: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateTOF.c", line 12838: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateTOF.c", line 12865: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateTOF.c", line 12865: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateTOF.c", line 12989: 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; ^ "./templateTOF.c", line 12989: 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; ^ "./templateTOF.c", line 12989: 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; ^ "./templateTOF.c", line 12989: 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; ^ "./templateTOF.c", line 12989: 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; ^ "./templateTOF.c", line 12989: 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; ^ "./templateTOF.c", line 13346: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./templateTOF.c", line 14262: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateTOF.c", line 16526: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./templateTOF.c", line 16527: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./templateTOF.c", line 16527: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./templateTOF.c", line 19255: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateTOF.c", line 19256: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./templateTOF.c", line 1514: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./templateTOF.c", line 2917: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 93, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 107, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 143, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 171, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 197, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 209, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 218, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 232, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1561, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1565, Generating acc routine seq Generating NVIDIA GPU code str_len: 1574, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4127, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4558, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4569, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4578, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4590, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4602, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4612, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4622, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4630, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4640, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4662, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4669, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4715, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4750, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4761, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4778, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4789, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4805, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4834, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4845, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4849, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5026, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5057, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5074, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5173, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5257, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5323, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5400, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5672, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5682, Generating acc routine seq Generating NVIDIA GPU code _hash: 5708, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5749, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5760, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5765, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5773, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5781, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5788, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6445, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6541, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6558, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6673, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6728, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7437, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 7856, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 7893, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 7929, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10173, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10241, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10320, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10788, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10804, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10822, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11819, Generating acc routine seq Generating NVIDIA GPU code off_F: 12946, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12951, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12961, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12987, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13050, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13181, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13226, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 13343, Generating acc routine seq Generating NVIDIA GPU code off_compare: 13461, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 13473, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 13508, Generating acc routine seq Generating NVIDIA GPU code Min_int: 13759, Generating acc routine seq Generating NVIDIA GPU code merge: 13766, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13870, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13885, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13939, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14056, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14078, Generating acc routine seq Generating NVIDIA GPU code init: 16052, Generating update device(_dt0) 16101, Generating update device(_Sample_in_var,_a1_var,_M_total_var,_Container_out_var,_SampleOut_var,_Container_in_var,_Environment_in_var,_SampleIn_var,_M_single_inc_var,_M_multi_var,_M_single_coh_var,_M_env_container_var,_Environment_out_var,_instrument_var,_csource_var) class_Progress_bar_trace: 16142, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16245, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 16455, Generating acc routine seq Generating NVIDIA GPU code 16774, 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_Monitor_nD_trace: 17117, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17416, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17741, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17755, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17741, Local memory used for .inl_particle_20243,particleN,.inl_.inl_mcneutron_0_20258,.inl_.X2179_20260,.inl_.inl_.X2381_15_20259 17755, Generating implicit firstprivate(seed,_particle) finally: 18568, Generating update self(_Sample_in_var,_a1_var,_M_total_var,_Container_out_var,_SampleOut_var,_Container_in_var,_Environment_in_var,_SampleIn_var,_M_single_inc_var,_M_multi_var,_M_single_coh_var,_M_env_container_var,_Environment_out_var,_instrument_var,_csource_var) mcenabletrace: 5907, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafat2PznhIRx5kcNK.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: ===