INFO: No output directory specified (--dir) INFO: Using directory: "Test_Sources_20241118_030602" INFO: Regenerating c-file: Test_Sources.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_Sources.c Test_Sources.instr CFLAGS= ----------------------------------------------------------- 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_Sources.out DEBUG: CMD: nvc -o ./Test_Sources.out ./Test_Sources.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./Test_Sources.c", line 4486: 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_Sources.c", line 8835: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./Test_Sources.c", line 11297: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Sources.c", line 11297: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_Sources.c", line 11324: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Sources.c", line 11324: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_Sources.c", line 11652: warning: variable "minx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_Sources.c", line 11652: warning: variable "maxx" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_Sources.c", line 11652: warning: variable "miny" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_Sources.c", line 11652: warning: variable "maxy" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_Sources.c", line 11652: warning: variable "minz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_Sources.c", line 11652: warning: variable "maxz" was declared but never referenced [declared_but_not_referenced] MCNUM minx=FLT_MAX,maxx=-FLT_MAX,miny=FLT_MAX,maxy=-FLT_MAX,minz=FLT_MAX,maxz=-FLT_MAX; ^ "./Test_Sources.c", line 12009: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_Sources.c", line 13406: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13394: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Sources.c", line 13462: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13447: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Sources.c", line 13522: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13504: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Sources.c", line 13608: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13564: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Sources.c", line 13694: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13650: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Sources.c", line 13758: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13736: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Sources.c", line 13826: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13800: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Sources.c", line 13884: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13868: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Sources.c", line 13932: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13926: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./Test_Sources.c", line 14030: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 13974: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./Test_Sources.c", line 14128: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 14072: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./Test_Sources.c", line 14226: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Sources.c", line 14170: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./Test_Sources.c", line 15021: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./Test_Sources.c", line 15030: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./Test_Sources.c", line 16282: warning: variable "tau_l" was declared but never referenced [declared_but_not_referenced] double v,tau_l,E,lambda,k,r,xf,yf,dx,dy,w_focus; ^ "./Test_Sources.c", line 16282: 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_Sources.c", line 16434: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./Test_Sources.c", line 16435: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./Test_Sources.c", line 19066: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Sources.c", line 19067: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Sources.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Sources.c", line 2898: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 88, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 102, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 134, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 158, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 180, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 191, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 200, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 210, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1542, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1546, Generating acc routine seq Generating NVIDIA GPU code str_len: 1555, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4107, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4538, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4558, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4602, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4620, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4642, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4649, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4695, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4758, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4785, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4814, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4825, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4829, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5006, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5037, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5054, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5153, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5237, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5303, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5380, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5652, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5662, Generating acc routine seq Generating NVIDIA GPU code _hash: 5688, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5729, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5740, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5745, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5761, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5768, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6427, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6463, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6523, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6540, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6655, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7718, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7786, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7865, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8333, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8349, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8367, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8414, Generating acc routine seq Generating NVIDIA GPU code SM3_Maxwell: 8425, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 8555, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 8582, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 8596, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 8608, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 8615, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 8640, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 8667, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 8692, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 8703, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 8714, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 8759, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 8810, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 8817, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 8824, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 8831, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 8841, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 8851, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10293, Generating acc routine seq Generating NVIDIA GPU code off_F: 11609, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11614, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11624, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11650, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11713, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11844, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11889, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12006, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12124, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12136, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12171, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12422, Generating acc routine seq Generating NVIDIA GPU code merge: 12429, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12533, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12548, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12602, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12719, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12741, Generating acc routine seq Generating NVIDIA GPU code init: 15714, Generating update device(_Events_var,_m3_var,_sa2_var,_sa3_var,_sa4_var,_sa5_var,_sa6_var,_sa8_var,_sa7_var,_instrument_var,_m1_var,_m2_var,_Origin_var) class_Progress_bar_trace: 15757, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 15847, Generating acc routine seq Generating NVIDIA GPU code class_Source_simple_trace: 15945, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16048, Generating acc routine seq Generating NVIDIA GPU code class_Source_Maxwell_3_trace: 16257, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 16352, Generating acc routine seq Generating NVIDIA GPU code class_Moderator_trace: 16639, Generating acc routine seq Generating NVIDIA GPU code class_Event_monitor_simple_trace: 16722, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16781, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17075, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17389, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17403, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17389, Local memory used for .inl_particle_17837,particleN,.inl_.inl_mcneutron_0_17852,.inl_.X2255_17854,.inl_.inl_.X2461_15_17853 17403, Generating implicit firstprivate(seed,_particle) finally: 18131, Generating update self(_Events_var,_m3_var,_sa2_var,_sa3_var,_sa4_var,_sa5_var,_sa6_var,_sa7_var,_sa8_var,_instrument_var,_m1_var,_m2_var,_Origin_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===