INFO: No output directory specified (--dir) INFO: Using directory: "Test_MCPL_output_20241222_024315" 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 -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -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 4494: 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 9037: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_MCPL_output.c", line 9037: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_MCPL_output.c", line 9064: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_MCPL_output.c", line 9064: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_MCPL_output.c", line 10961: 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 10961: 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 10961: 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 10961: 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 10961: 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 10961: 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 11318: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_MCPL_output.c", line 12439: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12427: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_MCPL_output.c", line 12502: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12480: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_MCPL_output.c", line 12544: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_MCPL_output.c", line 12669: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12613: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_MCPL_output.c", line 12767: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12711: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_MCPL_output.c", line 12865: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12809: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_MCPL_output.c", line 12963: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12907: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_MCPL_output.c", line 13205: 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 13196: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int size,status; ^ "./Test_MCPL_output.c", line 13730: 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 13730: 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 15750: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_MCPL_output.c", line 15751: 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: 4115, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4546, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4557, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4566, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4578, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4590, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4600, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4618, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4628, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4650, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4657, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4703, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4738, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4749, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4766, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4777, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4793, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4822, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4833, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4837, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5014, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5045, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5062, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5161, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5245, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5311, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5388, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5660, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5670, Generating acc routine seq Generating NVIDIA GPU code _hash: 5696, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5737, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5748, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5753, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5761, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5769, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5776, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6435, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6471, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6531, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6548, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6663, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6718, Generating acc routine seq Generating NVIDIA GPU code SM3_Maxwell: 6819, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8018, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10015, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10083, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10162, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 10630, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 10646, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 10664, Generating acc routine seq Generating NVIDIA GPU code off_F: 10918, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10923, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10933, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10959, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11022, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11153, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11198, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11315, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11433, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11445, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11480, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11731, Generating acc routine seq Generating NVIDIA GPU code merge: 11738, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11842, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11857, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11911, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12028, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12050, Generating acc routine seq Generating NVIDIA GPU code init: 13572, Generating update device(_m4_var,_vout_var,_sa_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) class_Progress_bar_trace: 13615, Generating acc routine seq Generating NVIDIA GPU code class_Source_Maxwell_3_trace: 13705, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_output_trace: 13808, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 13961, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14256, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14458, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14472, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14458, Local memory used for .inl_particle_12957,particleN,.inl_.inl_mcneutron_0_12972,.inl_.X2039_12974,.inl_.inl_.X2241_15_12973 14472, Generating implicit firstprivate(seed,_particle) finally: 15215, Generating update self(_m4_var,_sa_var,_vout_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) mcenabletrace: 5895, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatp5qyeTx75RhcP.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===