INFO: No output directory specified (--dir) INFO: Using directory: "Test_TOFRes_sample_20241206_154611" INFO: Regenerating c-file: Test_TOFRes_sample.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_TOFRes_sample.c Test_TOFRes_sample.instr Downloading file 'mcstas-comps/samples/TOFRes_sample.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/samples/TOFRes_sample.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/monitors/TOFRes_monitor.comp' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/monitors/TOFRes_monitor.comp' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. Downloading file 'mcstas-comps/share/cov-lib.h' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/share/cov-lib.h' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. 2024-12-06 15:46:15.898 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :TOFRes_monitor(0):monitor_nd-lib :TOFRes_monitor(1):cov-lib 2024-12-06 15:46:15.898 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib cov-lib ref-lib 2024-12-06 15:46:15.899 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib cov-lib Downloading file 'mcstas-comps/share/cov-lib.c' from 'https://github.com/McStasMcXtrace/McCode/raw/v3.5.14/mcstas-comps/share/cov-lib.c' to '/home/nexmap/pkwi/.cache/mcstas/v3.5.14'. No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component a1 -> GPU kernel from component source -> GPU kernel from component TOFL1 -> GPU kernel from component slit1 -> GPU kernel from component chop1 -> GPU kernel from component slit2 -> GPU kernel from component chop2 -> GPU kernel from component TOFL2 -> GPU kernel from component g -> GPU kernel from component chop3 -> GPU kernel from component PSD -> GPU kernel from component TOFL3 -> GPU kernel from component sample -> GPU kernel from component arm2 -> GPU kernel from component detector ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr finished INFO: Recompiling: ./Test_TOFRes_sample.out DEBUG: CMD: nvc -o ./Test_TOFRes_sample.out ./Test_TOFRes_sample.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_TOFRes_sample.c", line 4545: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_TOFRes_sample.c", line 11336: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_TOFRes_sample.c", line 11336: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_TOFRes_sample.c", line 11363: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_TOFRes_sample.c", line 11363: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_TOFRes_sample.c", line 12345: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_TOFRes_sample.c", line 13607: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_TOFRes_sample.c", line 13822: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double v,tau_l,E,lambda,k,r,xf,yf,dx,dy,w_focus; ^ "./Test_TOFRes_sample.c", line 13967: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./Test_TOFRes_sample.c", line 14424: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double E; ^ "./Test_TOFRes_sample.c", line 16738: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_TOFRes_sample.c", line 16739: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_TOFRes_sample.c", line 1554: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_TOFRes_sample.c", line 2957: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 99, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 113, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 155, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 189, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 221, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 233, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 242, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 262, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1601, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1605, Generating acc routine seq Generating NVIDIA GPU code str_len: 1614, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4166, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4608, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4629, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4641, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4651, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4661, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4669, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4679, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4701, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4708, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4754, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4789, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4800, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4817, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4828, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4844, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4873, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4884, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4888, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5065, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5096, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5113, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5212, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5296, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5362, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5439, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5711, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5721, Generating acc routine seq Generating NVIDIA GPU code _hash: 5747, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5788, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5799, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5804, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5812, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5820, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5827, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6484, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6580, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6597, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6712, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6767, Generating acc routine seq Generating NVIDIA GPU code Mezei_M_fct: 7494, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8686, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8754, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8833, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9301, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9317, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9335, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10332, Generating acc routine seq Generating NVIDIA GPU code tl2_lst_append: 11455, Generating acc routine seq Generating NVIDIA GPU code tl2_k_to_E: 12050, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 12109, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 12168, Generating acc routine seq Generating NVIDIA GPU code init: 13753, Generating update device(_TOFL3_var,_source_var,_slit2_var,_PSD_var,_sample_var,_arm2_var,_slit1_var,_chop1_var,_TOFL1_var,_detector_var,_chop2_var,_TOFL2_var,_instrument_var,_a1_var,_chop3_var,_g_var) class_ESS_moderator_short_trace: 13795, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 13942, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 14030, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 14074, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 14164, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14317, Generating acc routine seq Generating NVIDIA GPU code class_TOFRes_sample_trace: 14388, Generating acc routine seq Generating NVIDIA GPU code class_TOFRes_monitor_trace: 14560, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14761, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15099, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15113, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15099, Local memory used for .inl_particle_17247,particleN,.inl_.inl_mcneutron_0_17262,.inl_.X2167_17264,.inl_.inl_.X2366_15_17263 15113, Generating implicit firstprivate(seed,_particle) finally: 15857, Generating update self(_TOFL3_var,_source_var,_slit2_var,_PSD_var,_sample_var,_arm2_var,_slit1_var,_chop1_var,_TOFL1_var,_detector_var,_chop2_var,_TOFL2_var,_instrument_var,_a1_var,_chop3_var,_g_var) mcenabletrace: 5946, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===