INFO: No output directory specified (--dir) INFO: Using directory: "Test_MCPL_output_20240919_023931" 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 9047: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_MCPL_output.c", line 9047: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_MCPL_output.c", line 9074: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_MCPL_output.c", line 9074: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_MCPL_output.c", line 10971: 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 10971: 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 10971: 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 10971: 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 10971: 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 10971: 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 11328: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_MCPL_output.c", line 12449: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12437: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_MCPL_output.c", line 12512: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12490: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_MCPL_output.c", line 12554: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_MCPL_output.c", line 12679: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12623: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_MCPL_output.c", line 12777: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12721: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_MCPL_output.c", line 12875: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12819: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_MCPL_output.c", line 12973: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12917: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_MCPL_output.c", line 13215: 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 13206: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int size,status; ^ "./Test_MCPL_output.c", line 13742: 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 13742: 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 15743: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_MCPL_output.c", line 15744: 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: 8043, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10025, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10093, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10172, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10640, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10656, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10674, Generating acc routine seq Generating NVIDIA GPU code off_F: 10928, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10933, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10943, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10969, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11032, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11163, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11208, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11325, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11443, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11455, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11490, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11741, Generating acc routine seq Generating NVIDIA GPU code merge: 11748, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11852, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11867, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11921, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12038, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12060, Generating acc routine seq Generating NVIDIA GPU code init: 13582, Generating update device(_m4_var,_vout_var,_sa_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) class_Progress_bar_trace: 13627, Generating acc routine seq Generating NVIDIA GPU code class_Source_Maxwell_3_trace: 13717, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_output_trace: 13820, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 13973, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14268, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14471, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14482, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14471, Local memory used for .inl_particle_12966,particleN,.inl_.inl_mcneutron_0_12981,.inl_.X2039_12983,.inl_.inl_.X2243_15_12982 14482, Generating implicit firstprivate(seed,_particle) finally: 15208, 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: ===