INFO: No output directory specified (--dir) INFO: Using directory: "Test_MCPL_output_20241206_132952" INFO: Regenerating c-file: Test_MCPL_output.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -t -o ./Test_MCPL_output.c Test_MCPL_output.instr 2024-12-06 13:29:55.487 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Monitor_nD(0):monitor_nd-lib :Monitor_nD(1):read_table-lib :Monitor_nD(2):interoff-lib 2024-12-06 13:29:55.487 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to monitor_nd-lib read_table-lib interoff-lib 2024-12-06 13:29:57.546 | INFO | mccode_antlr.translators.c_listener:visitDeclarator:304 - Could not convert an integer from CHAR_BUF_LENGTH due to invalid literal for int() with base 10: 'CHAR_BUF_LENGTH' The instrument has 2 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component sa -> GPU kernel from component vout -> GPU kernel from component m1 -> GPU kernel from component m2 -> GPU kernel from component m3 -> GPU kernel from component m4 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr 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 4491: 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 9571: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_MCPL_output.c", line 9571: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./Test_MCPL_output.c", line 9598: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_MCPL_output.c", line 9598: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./Test_MCPL_output.c", line 11140: 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 11140: 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 11140: 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 11140: 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 11140: 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 11140: 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 11497: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./Test_MCPL_output.c", line 12407: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12455: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12557: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12613: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./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 12725: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_MCPL_output.c", line 12952: 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 12943: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int size,status; ^ "./Test_MCPL_output.c", line 13465: 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 13465: 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 15425: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_MCPL_output.c", line 15426: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_MCPL_output.c", line 1500: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_MCPL_output.c", line 2903: 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: 197, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 206, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 217, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1547, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1551, Generating acc routine seq Generating NVIDIA GPU code str_len: 1560, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4112, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4543, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4554, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4575, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4587, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4597, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4654, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4700, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4735, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4746, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4763, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4774, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4790, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4819, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4830, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4834, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5011, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5042, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5059, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5158, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5242, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5308, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5385, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5657, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5667, Generating acc routine seq Generating NVIDIA GPU code _hash: 5693, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5734, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5745, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5750, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5758, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5766, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5773, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6430, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6526, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6543, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6658, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6713, Generating acc routine seq Generating NVIDIA GPU code SM3_Maxwell: 7368, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8567, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10397, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10465, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10544, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11012, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11028, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11046, Generating acc routine seq Generating NVIDIA GPU code off_F: 11097, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11102, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11112, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11138, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11201, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11332, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11377, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11494, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11612, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11624, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11659, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11910, Generating acc routine seq Generating NVIDIA GPU code merge: 11917, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12021, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12036, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12090, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12207, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12229, Generating acc routine seq Generating NVIDIA GPU code init: 13309, Generating update device(_m4_var,_vout_var,_sa_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) class_Progress_bar_trace: 13350, Generating acc routine seq Generating NVIDIA GPU code class_Source_Maxwell_3_trace: 13440, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_output_trace: 13543, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 13696, Generating acc routine seq Generating NVIDIA GPU code raytrace: 13992, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 14194, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 14208, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 14194, Local memory used for .inl_particle_12878,particleN,.inl_.inl_mcneutron_0_12893,.inl_.X2041_12895,.inl_.inl_.X2243_15_12894 14208, Generating implicit firstprivate(seed,_particle) finally: 14937, Generating update self(_m4_var,_sa_var,_vout_var,_instrument_var,_m1_var,_m2_var,_m3_var,_Origin_var) mcenabletrace: 5892, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===