INFO: No output directory specified (--dir) INFO: Using directory: "Test_TOFRes_sample_20241118_032727" INFO: Regenerating c-file: Test_TOFRes_sample.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_TOFRes_sample.c Test_TOFRes_sample.instr Warning: 'ESS_moderator_short' is an obsolete component (not maintained). CFLAGS= --> Added COMPONENT sample USERVAR res_pi_13 with type double --> Added COMPONENT sample USERVAR res_ki_x_13 with type double --> Added COMPONENT sample USERVAR res_ki_y_13 with type double --> Added COMPONENT sample USERVAR res_ki_z_13 with type double --> Added COMPONENT sample USERVAR res_kf_x_13 with type double --> Added COMPONENT sample USERVAR res_kf_y_13 with type double --> Added COMPONENT sample USERVAR res_kf_z_13 with type double --> Added COMPONENT sample USERVAR res_rx_13 with type double --> Added COMPONENT sample USERVAR res_ry_13 with type double --> Added COMPONENT sample USERVAR res_rz_13 with type double ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas 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 4547: 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 10960: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_TOFRes_sample.c", line 10960: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_TOFRes_sample.c", line 10987: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_TOFRes_sample.c", line 10987: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_TOFRes_sample.c", line 12358: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_TOFRes_sample.c", line 12355: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_TOFRes_sample.c", line 12399: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_TOFRes_sample.c", line 12469: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_TOFRes_sample.c", line 12538: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_TOFRes_sample.c", line 12596: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_TOFRes_sample.c", line 12660: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_TOFRes_sample.c", line 12718: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_TOFRes_sample.c", line 12782: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_TOFRes_sample.c", line 12851: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_TOFRes_sample.c", line 12913: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_TOFRes_sample.c", line 12977: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_TOFRes_sample.c", line 13042: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Test_TOFRes_sample.c", line 13111: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Test_TOFRes_sample.c", line 13179: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Test_TOFRes_sample.c", line 13228: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./Test_TOFRes_sample.c", line 13858: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./Test_TOFRes_sample.c", line 14092: 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 14237: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./Test_TOFRes_sample.c", line 14694: warning: variable "E" was declared but never referenced [declared_but_not_referenced] double E; ^ "./Test_TOFRes_sample.c", line 17065: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_TOFRes_sample.c", line 17066: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_TOFRes_sample.c", line 1556: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_TOFRes_sample.c", line 2959: 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: 232, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 241, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 261, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1603, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1607, Generating acc routine seq Generating NVIDIA GPU code str_len: 1616, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4168, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4599, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4619, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4631, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4643, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4653, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4663, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4671, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4681, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4703, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4710, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4756, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4791, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4802, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4819, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4830, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4846, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4875, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4886, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4890, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5067, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5098, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5115, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5214, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5298, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5364, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5441, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5713, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5723, Generating acc routine seq Generating NVIDIA GPU code _hash: 5749, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5790, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5801, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5806, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5814, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5822, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5829, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6488, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6524, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6584, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6601, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6716, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6771, Generating acc routine seq Generating NVIDIA GPU code Mezei_M_fct: 6884, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7815, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7883, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7962, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8430, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8446, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8464, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 8573, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 8632, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9956, Generating acc routine seq Generating NVIDIA GPU code tl2_lst_append: 11299, Generating acc routine seq Generating NVIDIA GPU code tl2_k_to_E: 11894, Generating acc routine seq Generating NVIDIA GPU code init: 14022, 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: 14065, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 14212, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 14300, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 14344, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 14434, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14587, Generating acc routine seq Generating NVIDIA GPU code class_TOFRes_sample_trace: 14658, Generating acc routine seq Generating NVIDIA GPU code class_TOFRes_monitor_trace: 14830, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15030, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15368, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15382, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15368, Local memory used for .inl_particle_17215,particleN,.inl_.inl_mcneutron_0_17230,.inl_.X2162_17232,.inl_.inl_.X2361_15_17231 15382, Generating implicit firstprivate(seed,_particle) finally: 16150, 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: 5948, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===