INFO: No output directory specified (--dir) INFO: Using directory: "templateTOF_20241206_132525" INFO: Regenerating c-file: templateTOF.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./templateTOF.c templateTOF.instr 2024-12-06 13:25:28.659 | 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-06 13:25:28.659 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 13:25:28.659 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib interoff-lib 2024-12-06 13:25:28.660 | 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-06 13:25:34.477 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1259,4 2024-12-06 13:25:34.478 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - MPI_MASTER( 2024-12-06 13:25:34.478 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->verbose_output > 0) { 2024-12-06 13:25:34.478 | 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 13:25:34.478 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - Sqw->compname, file, T); 2024-12-06 13:25:34.479 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-06 13:25:34.479 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~~~^ missing '}' at ')' 2024-12-06 13:25:34.479 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } 2024-12-06 13:25:34.479 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } line 1263:2 mismatched input 'if' expecting 2024-12-06 13:25:34.493 | ERROR | mccode_antlr.translators.c_listener:syntaxError:35 - Syntax error in parsing 1263,2 2024-12-06 13:25:34.494 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - ); 2024-12-06 13:25:34.494 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-06 13:25:34.494 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - } 2024-12-06 13:25:34.494 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - 2024-12-06 13:25:34.494 | INFO | mccode_antlr.translators.c_listener:syntaxError:40 - if (Sqw->Temperature == 0) { 2024-12-06 13:25:34.494 | ERROR | mccode_antlr.translators.c_listener:syntaxError:41 - ~~^ mismatched input 'if' expecting 2024-12-06 13:25:34.495 | 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 13:25:34.495 | INFO | mccode_antlr.translators.c_listener:syntaxError:43 - } else if (Sqw->Temperature ==-1) { 2024-12-06 13:25:34.616 | 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' 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 finished INFO: Recompiling: ./templateTOF.out DEBUG: CMD: nvc -o ./templateTOF.out ./templateTOF.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./templateTOF.c", line 4505: 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 8074: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./templateTOF.c", line 8053: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./templateTOF.c", line 8054: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./templateTOF.c", line 7965: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./templateTOF.c", line 7965: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./templateTOF.c", line 12822: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateTOF.c", line 12822: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateTOF.c", line 12849: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateTOF.c", line 12849: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateTOF.c", line 12973: 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 12973: 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 12973: 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 12973: 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 12973: 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 12973: 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 13330: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./templateTOF.c", line 14246: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateTOF.c", line 16510: 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 16511: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./templateTOF.c", line 16511: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./templateTOF.c", line 19245: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateTOF.c", line 19246: 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: 4126, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4557, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4568, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4577, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4589, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4601, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4611, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4621, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4629, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4639, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4661, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4668, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4714, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4749, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4760, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4777, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4788, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4804, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4833, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4844, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4848, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5025, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5056, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5073, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5172, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5256, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5322, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5399, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5671, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5681, Generating acc routine seq Generating NVIDIA GPU code _hash: 5707, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5748, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5759, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5764, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5772, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5780, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5787, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6444, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6540, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6557, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6672, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6727, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7436, 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: 10172, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10240, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10319, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10787, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10803, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10821, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 11818, Generating acc routine seq Generating NVIDIA GPU code off_F: 12930, Generating acc routine seq Generating NVIDIA GPU code off_sign: 12935, Generating acc routine seq Generating NVIDIA GPU code off_normal: 12945, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 12971, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 13034, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 13165, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 13210, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 13327, Generating acc routine seq Generating NVIDIA GPU code off_compare: 13445, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 13457, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 13492, Generating acc routine seq Generating NVIDIA GPU code Min_int: 13743, Generating acc routine seq Generating NVIDIA GPU code merge: 13750, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 13854, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 13869, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 13923, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 14040, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 14062, Generating acc routine seq Generating NVIDIA GPU code init: 16036, Generating update device(_dt0) 16085, 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: 16126, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16229, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 16439, Generating acc routine seq Generating NVIDIA GPU code 16758, 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: 17107, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17406, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17731, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17745, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17731, Local memory used for .inl_particle_20243,particleN,.inl_.inl_mcneutron_0_20258,.inl_.X2179_20260,.inl_.inl_.X2381_15_20259 17745, Generating implicit firstprivate(seed,_particle) finally: 18558, 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: 5906, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===