INFO: No output directory specified (--dir) INFO: Using directory: "Unittest_SANS_benchmark2_20241206_155229" INFO: Regenerating c-file: Unittest_SANS_benchmark2.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Unittest_SANS_benchmark2.c Unittest_SANS_benchmark2.instr No initialization present? ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT 10 at component sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component a1 -> GPU kernel from component arm -> GPU kernel from component source -> GPU kernel from component coll1 -> GPU kernel from component coll2 -> GPU kernel from component sample_position -> GPU kernel from component Sample_in -> SPLIT within buffer at component sample -> GPU kernel from component detector -> GPU kernel from component detectorSANS -> GPU kernel from component detectorDB -> GPU kernel from component Ldetector -> GPU kernel from component PSDrad -> GPU kernel from component PSDrad_full ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr 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 4491: 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 6977: 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 7635: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unittest_SANS_benchmark2.c", line 7666: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Unittest_SANS_benchmark2.c", line 9106: warning: variable "thmax" was set but never used [set_but_not_used] double qmax,qmaxl,Ymax,Xmax,thmax; ^ "./Unittest_SANS_benchmark2.c", line 10807: warning: variable "radius" was declared but never referenced [declared_but_not_referenced] double radius = 0; ^ "./Unittest_SANS_benchmark2.c", line 10808: warning: variable "h" was declared but never referenced [declared_but_not_referenced] double h = 0; ^ "./Unittest_SANS_benchmark2.c", line 11182: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Unittest_SANS_benchmark2.c", line 11183: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Unittest_SANS_benchmark2.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Unittest_SANS_benchmark2.c", line 2903: 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: 197, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 206, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 217, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1547, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1551, Generating acc routine seq Generating NVIDIA GPU code str_len: 1560, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4112, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4543, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4554, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4587, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4654, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4700, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4735, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4746, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4763, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4774, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4790, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4819, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4830, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4834, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5011, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5042, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5059, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5158, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5242, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5308, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5385, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5657, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5667, Generating acc routine seq Generating NVIDIA GPU code _hash: 5693, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5734, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5745, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5750, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5758, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5766, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5773, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6430, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6526, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6543, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6658, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6713, Generating acc routine seq Generating NVIDIA GPU code sb_min: 6840, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_max: 6844, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_imin: 6848, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_imax: 6852, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code gamma: 6857, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code errf: 6905, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code J1: 6937, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code dSigdW: 6966, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 8729, 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: 8770, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 8861, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 8964, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 9008, Generating acc routine seq Generating NVIDIA GPU code class_SANS_benchmark2_trace: 9079, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 9361, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_rad_trace: 9434, Generating acc routine seq Generating NVIDIA GPU code raytrace: 9499, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 9835, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 9849, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 9835, Local memory used for .inl_particle_12913,particleN,.inl_.inl_mcneutron_0_12928,.inl_.X1899_12930,.inl_.inl_.X2096_15_12929 9849, Generating implicit firstprivate(seed,_particle) finally: 10590, 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: 5892, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===