INFO: No output directory specified (--dir) INFO: Using directory: "Unittest_SANS_benchmark2_20240919_032939" INFO: Regenerating c-file: Unittest_SANS_benchmark2.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Unittest_SANS_benchmark2.c Unittest_SANS_benchmark2.instr Info: 'SANS_benchmark2' is a contributed component. Info: 'PSD_monitor_rad' is a contributed component. CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component sample ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Unittest_SANS_benchmark2.out DEBUG: CMD: nvc -o ./Unittest_SANS_benchmark2.out ./Unittest_SANS_benchmark2.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Unittest_SANS_benchmark2.c", line 4493: 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. ^ "./Unittest_SANS_benchmark2.c", line 6986: warning: variable "BBB" was declared but never referenced [declared_but_not_referenced] double G,P,gam,B,k,AAA,BBB,erf,QQ; ^ "./Unittest_SANS_benchmark2.c", line 7660: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unittest_SANS_benchmark2.c", line 7648: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Unittest_SANS_benchmark2.c", line 7704: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unittest_SANS_benchmark2.c", line 7701: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Unittest_SANS_benchmark2.c", line 7746: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Unittest_SANS_benchmark2.c", line 7810: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Unittest_SANS_benchmark2.c", line 7868: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Unittest_SANS_benchmark2.c", line 7926: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Unittest_SANS_benchmark2.c", line 7975: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Unittest_SANS_benchmark2.c", line 8040: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Unittest_SANS_benchmark2.c", line 8099: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Unittest_SANS_benchmark2.c", line 8164: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Unittest_SANS_benchmark2.c", line 8229: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Unittest_SANS_benchmark2.c", line 8294: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Unittest_SANS_benchmark2.c", line 8360: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./Unittest_SANS_benchmark2.c", line 8421: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./Unittest_SANS_benchmark2.c", line 9383: warning: variable "thmax" was set but never used [set_but_not_used] double qmax,qmaxl,Ymax,Xmax,thmax; ^ "./Unittest_SANS_benchmark2.c", line 11080: warning: variable "radius" was declared but never referenced [declared_but_not_referenced] double radius = 0; ^ "./Unittest_SANS_benchmark2.c", line 11081: warning: variable "h" was declared but never referenced [declared_but_not_referenced] double h = 0; ^ "./Unittest_SANS_benchmark2.c", line 11471: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Unittest_SANS_benchmark2.c", line 11472: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Unittest_SANS_benchmark2.c", line 1502: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Unittest_SANS_benchmark2.c", line 2905: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 90, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 104, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 137, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 162, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 185, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 196, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 205, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 216, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1549, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1553, Generating acc routine seq Generating NVIDIA GPU code str_len: 1562, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4114, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4545, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4556, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4565, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4577, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4589, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4599, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4609, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4649, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4656, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4702, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4737, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4748, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4765, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4776, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4792, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4821, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4832, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4836, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5013, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5044, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5061, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5160, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5244, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5310, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5387, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5659, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5669, Generating acc routine seq Generating NVIDIA GPU code _hash: 5695, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5736, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5747, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5752, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5760, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5768, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5775, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6434, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6470, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6530, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6547, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6662, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6717, Generating acc routine seq Generating NVIDIA GPU code sb_min: 6849, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_max: 6853, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_imin: 6857, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_imax: 6861, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code gamma: 6866, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code errf: 6914, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code J1: 6946, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code dSigdW: 6975, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 9003, Generating update device(_Sample_in_var,_a1_var,_source_var,_sample_var,_arm_var,_coll1_var,_instrument_var,_PSDrad_var,_sample_position_var,_detectorSANS_var,_detectorDB_var,_coll2_var,_PSDrad_full_var,_Ldetector_var,_detector_var) class_Progress_bar_trace: 9048, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 9138, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 9241, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 9285, Generating acc routine seq Generating NVIDIA GPU code class_SANS_benchmark2_trace: 9356, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 9638, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_rad_trace: 9711, Generating acc routine seq Generating NVIDIA GPU code raytrace: 9775, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 10113, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 10124, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 10113, Local memory used for .inl_particle_12889,particleN,.inl_.inl_mcneutron_0_12904,.inl_.X1896_12906,.inl_.inl_.X2093_15_12905 10124, Generating implicit firstprivate(seed,_particle) finally: 10821, Generating update self(_Sample_in_var,_a1_var,_sample_var,_source_var,_arm_var,_coll1_var,_instrument_var,_PSDrad_var,_sample_position_var,_detectorSANS_var,_detectorDB_var,_coll2_var,_PSDrad_full_var,_Ldetector_var,_detector_var) mcenabletrace: 5894, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===