INFO: No output directory specified (--dir) INFO: Using directory: "Test_TOFRes_sample_20241222_111908" INFO: Regenerating c-file: Test_TOFRes_sample.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./Test_TOFRes_sample.c Test_TOFRes_sample.instr 2024-12-22 11:19:33.889 | 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-22 11:19:33.890 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib monitor_nd-lib cov-lib 2024-12-22 11:19:33.890 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib monitor_nd-lib cov-lib ref-lib 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 -I$MCSTAS finished INFO: Recompiling: ./Test_TOFRes_sample.out DEBUG: CMD: nvc -o ./Test_TOFRes_sample.out ./Test_TOFRes_sample.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_TOFRes_sample.c", line 4546: 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 11593: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_TOFRes_sample.c", line 11593: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_TOFRes_sample.c", line 11620: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_TOFRes_sample.c", line 11620: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_TOFRes_sample.c", line 12361: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_TOFRes_sample.c", line 13623: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_TOFRes_sample.c", line 13838: 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 13983: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./Test_TOFRes_sample.c", line 14440: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double E; ^ "./Test_TOFRes_sample.c", line 16754: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_TOFRes_sample.c", line 16755: 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: 4167, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4598, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4609, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4618, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4630, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4642, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4652, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4662, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4670, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4680, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4702, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4709, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4755, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4790, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4801, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4818, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4829, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4845, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4874, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4885, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4889, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5066, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5097, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5114, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5213, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5297, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5363, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5440, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5712, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5722, Generating acc routine seq Generating NVIDIA GPU code _hash: 5748, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5789, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5800, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5805, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5813, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5821, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5828, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6485, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6581, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6598, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6713, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6768, Generating acc routine seq Generating NVIDIA GPU code Mezei_M_fct: 7495, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8687, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8755, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8834, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9302, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9318, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9336, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9402, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9461, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10574, Generating acc routine seq Generating NVIDIA GPU code tl2_lst_append: 11712, Generating acc routine seq Generating NVIDIA GPU code tl2_k_to_E: 12307, Generating acc routine seq Generating NVIDIA GPU code init: 13769, 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: 13811, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 13958, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 14046, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 14090, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 14180, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14333, Generating acc routine seq Generating NVIDIA GPU code class_TOFRes_sample_trace: 14404, Generating acc routine seq Generating NVIDIA GPU code class_TOFRes_monitor_trace: 14576, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14777, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15115, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15129, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15115, Local memory used for .inl_particle_17247,particleN,.inl_.inl_mcneutron_0_17262,.inl_.X2167_17264,.inl_.inl_.X2366_15_17263 15129, Generating implicit firstprivate(seed,_particle) finally: 15873, 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: 5947, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatL8mLhVpjUHVlg.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: ===