INFO: No output directory specified (--dir) INFO: Using directory: "Test_MCPL_output_20241118_024001" INFO: Regenerating c-file: Test_MCPL_output.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_MCPL_output.c Test_MCPL_output.instr CFLAGS= -Wl,-rpath,CMD(mcpl-config --show libdir) -LCMD(mcpl-config --show libdir) -lmcpl -ICMD(mcpl-config --show includedir) ----------------------------------------------------------- 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_MCPL_output.out --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show includedir DEBUG: CMD: nvc -o ./Test_MCPL_output.out ./Test_MCPL_output.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lmcpl -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./Test_MCPL_output.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 " "./Test_MCPL_output.c", line 9021: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_MCPL_output.c", line 9021: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_MCPL_output.c", line 9048: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_MCPL_output.c", line 9048: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_MCPL_output.c", line 10945: 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_MCPL_output.c", line 10945: 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_MCPL_output.c", line 10945: 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_MCPL_output.c", line 10945: 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_MCPL_output.c", line 10945: 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_MCPL_output.c", line 10945: 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_MCPL_output.c", line 11302: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_MCPL_output.c", line 12423: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12411: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_MCPL_output.c", line 12486: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12464: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_MCPL_output.c", line 12528: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_MCPL_output.c", line 12653: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12597: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_MCPL_output.c", line 12751: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12695: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_MCPL_output.c", line 12849: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12793: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_MCPL_output.c", line 12947: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12891: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_MCPL_output.c", line 13189: warning: argument of type "unsigned char *" is incompatible with parameter of type "const char *" [incompatible_param] mcpl_hdr_add_data(outputfile, "mccode_instr_file", size, buffer); ^ "./Test_MCPL_output.c", line 13180: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int size,status; ^ "./Test_MCPL_output.c", line 13714: 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_MCPL_output.c", line 13714: 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_MCPL_output.c", line 15734: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_MCPL_output.c", line 15735: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_MCPL_output.c", line 1502: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_MCPL_output.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 SM3_Maxwell: 6818, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8017, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 9999, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10067, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10146, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10614, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10630, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10648, Generating acc routine seq Generating NVIDIA GPU code off_F: 10902, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10907, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10917, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10943, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11006, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11137, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11182, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11299, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11417, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11429, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11464, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11715, Generating acc routine seq Generating NVIDIA GPU code merge: 11722, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11826, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11841, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11895, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12012, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12034, Generating acc routine seq Generating NVIDIA GPU code init: 13556, Generating update device(_m4_var,_vout_var,_sa_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) class_Progress_bar_trace: 13599, Generating acc routine seq Generating NVIDIA GPU code class_Source_Maxwell_3_trace: 13689, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_output_trace: 13792, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 13945, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14240, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14442, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14456, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14442, Local memory used for .inl_particle_12957,particleN,.inl_.inl_mcneutron_0_12972,.inl_.X2039_12974,.inl_.inl_.X2241_15_12973 14456, Generating implicit firstprivate(seed,_particle) finally: 15199, Generating update self(_m4_var,_sa_var,_vout_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) mcenabletrace: 5894, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===