INFO: No output directory specified (--dir) INFO: Using directory: "templateTAS_20241118_075626" INFO: Regenerating c-file: templateTAS.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./templateTAS.c templateTAS.instr CFLAGS= --> Added COMPONENT PG1Xtal USERVAR ncol_6 with type int --> Added COMPONENT PG1Xtal USERVAR nrow_6 with type int --> Added COMPONENT PG2Xtal USERVAR ncol_16 with type int --> Added COMPONENT PG2Xtal USERVAR nrow_16 with type int WARNING: The parameter powder_format of Sample is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component PG1Xtal -> SPLIT N at component Sample_Cradle -> SPLIT N at component PG2Xtal ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component PG1Xtal -> SPLIT within buffer at component Sample_Cradle -> SPLIT within buffer at component PG2Xtal ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./templateTAS.out DEBUG: CMD: nvc -o ./templateTAS.out ./templateTAS.c -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./templateTAS.c", line 3725: warning: missing return statement at end of non-void function "siminfo_init" [implicit_return_from_non_void_function] } /* siminfo_init */ ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./templateTAS.c", line 4511: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./templateTAS.c", line 10780: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateTAS.c", line 10780: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateTAS.c", line 10807: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateTAS.c", line 10807: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateTAS.c", line 11135: 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; ^ "./templateTAS.c", line 11135: 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; ^ "./templateTAS.c", line 11135: 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; ^ "./templateTAS.c", line 11135: 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; ^ "./templateTAS.c", line 11135: 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; ^ "./templateTAS.c", line 11135: 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; ^ "./templateTAS.c", line 11492: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./templateTAS.c", line 12983: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./templateTAS.c", line 12962: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./templateTAS.c", line 12963: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./templateTAS.c", line 12874: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./templateTAS.c", line 12874: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./templateTAS.c", line 14735: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateTAS.c", line 14723: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./templateTAS.c", line 14820: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateTAS.c", line 14776: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./templateTAS.c", line 14877: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateTAS.c", line 14862: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./templateTAS.c", line 14922: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateTAS.c", line 14919: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./templateTAS.c", line 14964: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./templateTAS.c", line 15013: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./templateTAS.c", line 15090: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./templateTAS.c", line 15139: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./templateTAS.c", line 15241: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./templateTAS.c", line 15302: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./templateTAS.c", line 15404: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./templateTAS.c", line 15501: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./templateTAS.c", line 15550: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./templateTAS.c", line 15652: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./templateTAS.c", line 15713: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./templateTAS.c", line 15762: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./templateTAS.c", line 15839: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./templateTAS.c", line 15888: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./templateTAS.c", line 15949: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./templateTAS.c", line 17553: warning: incompatible redefinition of macro "exit" (declared at line 627) [bad_macro_redef] #define exit(...) noprintf() ^ "./templateTAS.c", line 18645: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./templateTAS.c", line 18646: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./templateTAS.c", line 18646: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./templateTAS.c", line 21738: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateTAS.c", line 21739: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./templateTAS.c", line 1520: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./templateTAS.c", line 2923: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 93, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 107, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 143, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 171, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 197, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 208, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 217, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 231, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1567, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1571, Generating acc routine seq Generating NVIDIA GPU code str_len: 1580, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4132, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4563, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4574, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4583, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4607, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4617, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4627, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4635, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4667, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4674, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4720, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4755, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4766, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4783, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4794, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4810, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4839, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4850, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4854, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5031, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5062, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5079, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5178, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5262, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5328, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5405, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5677, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5687, Generating acc routine seq Generating NVIDIA GPU code _hash: 5713, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5754, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5770, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5778, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5786, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5793, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6452, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6488, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6548, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6565, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6680, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6735, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7880, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7948, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8027, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8495, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8511, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8529, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8576, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 8585, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9776, Generating acc routine seq Generating NVIDIA GPU code off_F: 11092, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11097, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11107, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11133, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11196, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11327, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11372, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11489, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11607, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11619, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11654, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11905, Generating acc routine seq Generating NVIDIA GPU code merge: 11912, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12016, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12031, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12085, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12202, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12224, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 12764, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 12801, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 12837, Generating acc routine seq Generating NVIDIA GPU code init: 17195, Generating update device(OpenACC) 17523, Generating update device(_Mono_Out_var,_Sample_var,_PG2Xtal_var,_D7_SC3_1D_var,_He3H_var,_Origin_var,_Mono_Cradle_var,_Ana_Out_var,_SC1_var,_SC4_var,_Sample_Out_var,_Sample_Cradle_var,_D4_SC2_1D_var,_SC2_var,_PG1Xtal_var,_Ana_Cradle_var,_SC3_var,_Guide_out_var,_instrument_var,_Source_var) class_Progress_bar_trace: 17566, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 17656, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 17865, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 17939, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 18284, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 18574, Generating acc routine seq Generating NVIDIA GPU code 18893, Reference argument passing prevents parallelization: u1z Reference argument passing prevents parallelization: u1y Reference argument passing prevents parallelization: u1x Reference argument passing prevents parallelization: solid_angle class_PSD_monitor_trace: 19200, Generating acc routine seq Generating NVIDIA GPU code raytrace: 19279, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 19692, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 19706, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 19692, Local memory used for .inl_particle_22632,particleN,.inl_.inl_mcneutron_0_22647,.inl_.X2515_22649,.inl_.inl_.X2737_15_22648 19706, Generating implicit firstprivate(mpi_node_rank,_particle,seed,ncount) finally: 20781, Generating update self(_Mono_Out_var,_Sample_var,_PG2Xtal_var,_D7_SC3_1D_var,_He3H_var,_Origin_var,_Mono_Cradle_var,_Ana_Out_var,_SC1_var,_SC4_var,_Sample_Out_var,_Sample_Cradle_var,_D4_SC2_1D_var,_SC2_var,_PG1Xtal_var,_Ana_Cradle_var,_SC3_var,_Guide_out_var,_instrument_var,_Source_var) mcenabletrace: 5912, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===