INFO: No output directory specified (--dir) INFO: Using directory: "Test_Sqw_monitor_20241222_111734" INFO: Regenerating c-file: Test_Sqw_monitor.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Test_Sqw_monitor.c Test_Sqw_monitor.instr 2024-12-22 11:17:53.763 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(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 11:17:53.763 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-22 11:17:53.763 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2024-12-22 11:17:53.763 | 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 11:17:56.915 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1259,4 2024-12-22 11:17:56.916 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - MPI_MASTER( 2024-12-22 11:17:56.916 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->verbose_output > 0) { 2024-12-22 11:17:56.916 | 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 11:17:56.916 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - Sqw->compname, file, T); 2024-12-22 11:17:56.916 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-22 11:17:56.916 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~^ missing '}' at ')' 2024-12-22 11:17:56.916 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2024-12-22 11:17:56.916 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } line 1263:2 mismatched input 'if' expecting 2024-12-22 11:17:56.923 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1263,2 2024-12-22 11:17:56.923 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-22 11:17:56.923 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-22 11:17:56.923 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-22 11:17:56.923 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-22 11:17:56.923 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->Temperature == 0) { 2024-12-22 11:17:56.923 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ mismatched input 'if' expecting 2024-12-22 11:17:56.923 | 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 11:17:56.923 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } else if (Sqw->Temperature ==-1) { 2024-12-22 11:17:57.010 | 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 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 SamplePos -> 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 Detector_nM -> GPU kernel from component Detector_nM_coh -> GPU kernel from component Detector_nM_inc -> GPU kernel from component Detector_nM_multi -> GPU kernel from component Detector_nM_env -> 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: ./Test_Sqw_monitor.out DEBUG: CMD: nvc -o ./Test_Sqw_monitor.out ./Test_Sqw_monitor.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 "./Test_Sqw_monitor.c", line 4522: 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. ^ "./Test_Sqw_monitor.c", line 8095: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./Test_Sqw_monitor.c", line 8074: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./Test_Sqw_monitor.c", line 8075: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./Test_Sqw_monitor.c", line 7986: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./Test_Sqw_monitor.c", line 7986: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./Test_Sqw_monitor.c", line 12910: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Sqw_monitor.c", line 12910: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Sqw_monitor.c", line 12937: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Sqw_monitor.c", line 12937: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Sqw_monitor.c", line 13061: 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; ^ "./Test_Sqw_monitor.c", line 13061: 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; ^ "./Test_Sqw_monitor.c", line 13061: 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; ^ "./Test_Sqw_monitor.c", line 13061: 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; ^ "./Test_Sqw_monitor.c", line 13061: 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; ^ "./Test_Sqw_monitor.c", line 13061: 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; ^ "./Test_Sqw_monitor.c", line 13418: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Sqw_monitor.c", line 14339: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sqw_monitor.c", line 17366: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./Test_Sqw_monitor.c", line 17367: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./Test_Sqw_monitor.c", line 17367: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./Test_Sqw_monitor.c", line 17983: warning: variable "q" was declared but never referenced [declared_but_not_referenced] double q,qq; ^ "./Test_Sqw_monitor.c", line 17987: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double phi; ^ "./Test_Sqw_monitor.c", line 20334: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Sqw_monitor.c", line 20335: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Sqw_monitor.c", line 1530: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Sqw_monitor.c", line 2933: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 95, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 109, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 147, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 177, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 205, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 217, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 226, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 242, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1577, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1581, Generating acc routine seq Generating NVIDIA GPU code str_len: 1590, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4143, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4585, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4606, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4618, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4628, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4638, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4646, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4656, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4678, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4685, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4731, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4766, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4777, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4794, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4805, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4821, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4850, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4861, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4865, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5042, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5073, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5090, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5189, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5273, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5339, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5416, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5688, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5698, Generating acc routine seq Generating NVIDIA GPU code _hash: 5724, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5765, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5776, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5781, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5789, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5797, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5804, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6461, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6557, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6574, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6689, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6744, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7453, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 7876, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 7913, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 7949, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10245, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10313, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10392, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10860, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10876, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10894, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11891, Generating acc routine seq Generating NVIDIA GPU code off_F: 13018, Generating acc routine seq Generating NVIDIA GPU code off_sign: 13023, Generating acc routine seq Generating NVIDIA GPU code off_normal: 13033, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 13059, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13122, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13253, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13298, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 13415, Generating acc routine seq Generating NVIDIA GPU code off_compare: 13533, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 13545, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 13580, Generating acc routine seq Generating NVIDIA GPU code Min_int: 13831, Generating acc routine seq Generating NVIDIA GPU code merge: 13838, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13942, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13957, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 14011, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14128, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14150, Generating acc routine seq Generating NVIDIA GPU code init: 16511, Generating update device(det_radius,env_radius,vi,dt0) 16578, Generating update device(_Sample_in_var,_a1_var,_SampleOut_var,_M_total_var,_Detector_nM_var,_SamplePos_var,_Container_in_var,_Environment_in_var,_SampleIn_var,_Detector_nM_multi_var,_Container_out_var,_Detector_nM_env_var,_Detector_nM_inc_var,_Detector_nM_coh_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: 16619, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16726, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 16935, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16981, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 17295, Generating acc routine seq Generating NVIDIA GPU code 17614, 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: 17958, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18103, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18577, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18591, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18577, Local memory used for .inl_particle_23512,particleN,.inl_.inl_mcneutron_0_23527,.inl_.X2211_23529,.inl_.inl_.X2413_15_23528 18591, Generating implicit firstprivate(seed,_particle) finally: 19621, Generating update self(_Sample_in_var,_a1_var,_SampleOut_var,_M_total_var,_Detector_nM_var,_SamplePos_var,_Container_in_var,_Environment_in_var,_SampleIn_var,_Detector_nM_multi_var,_Container_out_var,_Detector_nM_env_var,_Detector_nM_inc_var,_Detector_nM_coh_var,_M_single_inc_var,_M_multi_var,_M_single_coh_var,_M_env_container_var,_Environment_out_var,_instrument_var,_csource_var) mcenabletrace: 5923, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatnE6KhNds6zkMO.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: ===