INFO: No output directory specified (--dir) INFO: Using directory: "Test_MCPL_output_20241121_064229" INFO: Regenerating c-file: Test_MCPL_output.c DEBUG: CMD: /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace -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/McXtrace/mcxtrace/3.x-dev/bin/mcxtrace 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/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -L/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -L/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/lib -lmcpl -I/u/data/pkwi/McXtrace/mcxtrace/3.x-dev/miniconda3/include "./Test_MCPL_output.c", line 4483: 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 6606: warning: variable "ret" was declared but never referenced [declared_but_not_referenced] int ret=1,stat=0,plane_stat=0; ^ "./Test_MCPL_output.c", line 6779: warning: variable "D" was declared but never referenced [declared_but_not_referenced] double A,B,C,D,k; ^ "./Test_MCPL_output.c", line 8822: warning: integer conversion resulted in a change of sign [integer_sign_change] Vars->OFF_polyidx = -1; ^ "./Test_MCPL_output.c", line 9824: warning: variable "ratio" was set but never used [set_but_not_used] double ratio; ^ "./Test_MCPL_output.c", line 10339: warning: variable "y0" is used before its value is set [used_before_set] if (y0 < ymin) y0=ymin; ^ "./Test_MCPL_output.c", line 10341: warning: variable "y1" is used before its value is set [used_before_set] if (y1 < ymin) y1=ymin; ^ "./Test_MCPL_output.c", line 10713: 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 10713: 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 10713: 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 10713: 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 10713: 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 10713: 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 11070: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_MCPL_output.c", line 12186: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12174: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_MCPL_output.c", line 12227: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_MCPL_output.c", line 12298: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_MCPL_output.c", line 12417: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12367: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_MCPL_output.c", line 12509: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12459: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_MCPL_output.c", line 12601: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12551: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_MCPL_output.c", line 12693: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12643: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_MCPL_output.c", line 12827: warning: variable "status" was set but never used [set_but_not_used] int status=0; ^ "./Test_MCPL_output.c", line 12960: 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 12951: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int size,status; ^ "./Test_MCPL_output.c", line 15467: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_MCPL_output.c", line 15468: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_MCPL_output.c", line 1492: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_MCPL_output.c", line 2895: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 86, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 100, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 134, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 160, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 184, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 195, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 204, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 215, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1539, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1543, Generating acc routine seq Generating NVIDIA GPU code str_len: 1552, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4104, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4535, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4546, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4555, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4567, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4579, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4589, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4599, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4639, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4646, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4692, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4727, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4738, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4755, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4766, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4782, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4811, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4822, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4826, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5003, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5034, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5051, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5150, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5234, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5300, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5377, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5649, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5659, Generating acc routine seq Generating NVIDIA GPU code _hash: 5685, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5726, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5737, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5742, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5750, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5758, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5765, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6407, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6440, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6501, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6517, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6603, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6671, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7812, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7880, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7959, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8427, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8443, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8461, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9417, Generating acc routine seq Generating NVIDIA GPU code off_F: 10670, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10675, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10685, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 10711, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 10774, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 10905, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 10950, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11067, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11185, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11197, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11232, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11483, Generating acc routine seq Generating NVIDIA GPU code merge: 11490, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11594, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11609, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11663, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 11780, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 11802, Generating acc routine seq Generating NVIDIA GPU code init: 13311, Generating update device(_m4_var,_vout_var,_sa_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) class_Progress_bar_trace: 13352, Generating acc routine seq Generating NVIDIA GPU code class_Source_flat_trace: 13443, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_output_trace: 13588, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 13745, Generating acc routine seq Generating NVIDIA GPU code raytrace: 13969, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14171, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14185, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14171, Local memory used for .inl_particle_12854,particleN,.inl_.inl_mcphoton_0_12870,.inl_.X2014_12872,.inl_.inl_.X2214_13_12871 14185, Generating implicit firstprivate(seed,_particle) finally: 14956, Generating update self(_m4_var,_sa_var,_vout_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) mcenabletrace: 5884, Generating update device(mcdotrace) /u/data/pkwi/McXtrace/mcxtrace/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatzlBrblO3Vn4ws.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McXtrace/mcxtrace/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: ===