INFO: No output directory specified (--dir) INFO: Using directory: "Test_Sqw_monitor_20241206_154428" INFO: Regenerating c-file: Test_Sqw_monitor.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_Sqw_monitor.c Test_Sqw_monitor.instr 2024-12-06 15:44:31.588 | 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-06 15:44:31.589 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 15:44:31.589 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib interoff-lib monitor_nd-lib 2024-12-06 15:44:31.589 | 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-06 15:44:35.983 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1259,4 2024-12-06 15:44:35.984 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - MPI_MASTER( 2024-12-06 15:44:35.984 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->verbose_output > 0) { 2024-12-06 15:44:35.984 | 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-06 15:44:35.984 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - Sqw->compname, file, T); 2024-12-06 15:44:35.984 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-06 15:44:35.984 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~^ missing '}' at ')' 2024-12-06 15:44:35.984 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2024-12-06 15:44:35.984 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } line 1263:2 mismatched input 'if' expecting 2024-12-06 15:44:35.992 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1263,2 2024-12-06 15:44:35.993 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-06 15:44:35.993 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-06 15:44:35.993 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-06 15:44:35.993 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-06 15:44:35.993 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->Temperature == 0) { 2024-12-06 15:44:35.993 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ mismatched input 'if' expecting 2024-12-06 15:44:35.993 | 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-06 15:44:35.993 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } else if (Sqw->Temperature ==-1) { 2024-12-06 15:44:36.135 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:304 - 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 finished INFO: Recompiling: ./Test_Sqw_monitor.out DEBUG: CMD: nvc -o ./Test_Sqw_monitor.out ./Test_Sqw_monitor.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Sqw_monitor.c", line 4521: 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 8094: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./Test_Sqw_monitor.c", line 8073: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./Test_Sqw_monitor.c", line 8074: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./Test_Sqw_monitor.c", line 7985: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./Test_Sqw_monitor.c", line 7985: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./Test_Sqw_monitor.c", line 12894: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Sqw_monitor.c", line 12894: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Sqw_monitor.c", line 12921: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Sqw_monitor.c", line 12921: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Sqw_monitor.c", line 13045: 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 13045: 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 13045: 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 13045: 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 13045: 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 13045: 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 13402: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Sqw_monitor.c", line 14323: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sqw_monitor.c", line 17350: 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 17351: 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 17351: 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 17973: warning: variable "q" was declared but never referenced [declared_but_not_referenced] double q,qq; ^ "./Test_Sqw_monitor.c", line 17977: warning: variable "phi" was declared but never referenced [declared_but_not_referenced] double phi; ^ "./Test_Sqw_monitor.c", line 20324: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Sqw_monitor.c", line 20325: 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: 4142, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4573, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4584, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4637, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4655, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4677, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4684, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4776, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4793, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4804, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4820, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4849, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4860, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4864, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5041, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5072, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5089, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5188, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5272, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5338, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5415, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5687, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5697, Generating acc routine seq Generating NVIDIA GPU code _hash: 5723, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5764, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5775, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5780, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5788, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5796, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5803, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6460, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6556, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6573, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6688, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6743, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7452, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 7875, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 7912, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 7948, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10244, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10312, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10391, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10859, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10875, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10893, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11890, Generating acc routine seq Generating NVIDIA GPU code off_F: 13002, Generating acc routine seq Generating NVIDIA GPU code off_sign: 13007, Generating acc routine seq Generating NVIDIA GPU code off_normal: 13017, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 13043, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13106, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13237, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13282, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 13399, Generating acc routine seq Generating NVIDIA GPU code off_compare: 13517, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 13529, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 13564, Generating acc routine seq Generating NVIDIA GPU code Min_int: 13815, Generating acc routine seq Generating NVIDIA GPU code merge: 13822, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13926, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13941, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13995, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14112, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14134, Generating acc routine seq Generating NVIDIA GPU code init: 16495, Generating update device(det_radius,env_radius,vi,dt0) 16562, 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: 16603, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16710, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 16919, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16965, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 17279, Generating acc routine seq Generating NVIDIA GPU code 17598, 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: 17948, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18093, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18567, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18581, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18567, Local memory used for .inl_particle_23512,particleN,.inl_.inl_mcneutron_0_23527,.inl_.X2211_23529,.inl_.inl_.X2413_15_23528 18581, Generating implicit firstprivate(seed,_particle) finally: 19611, 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: 5922, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===