INFO: No output directory specified (--dir) INFO: Using directory: "HZB_NEAT_20241204_002445" INFO: Regenerating c-file: HZB_NEAT.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./HZB_NEAT.c HZB_NEAT.instr Info: 'PSD_Detector' is a contributed component. CFLAGS= 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 Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component Sample ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./HZB_NEAT.out DEBUG: CMD: nvc -o ./HZB_NEAT.out ./HZB_NEAT.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./HZB_NEAT.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./HZB_NEAT.c", line 11116: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./HZB_NEAT.c", line 11116: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./HZB_NEAT.c", line 11143: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./HZB_NEAT.c", line 11143: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./HZB_NEAT.c", line 11471: 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; ^ "./HZB_NEAT.c", line 11471: 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; ^ "./HZB_NEAT.c", line 11471: 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; ^ "./HZB_NEAT.c", line 11471: 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; ^ "./HZB_NEAT.c", line 11471: 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; ^ "./HZB_NEAT.c", line 11471: 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; ^ "./HZB_NEAT.c", line 11828: 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. ^ "./HZB_NEAT.c", line 13319: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./HZB_NEAT.c", line 13298: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./HZB_NEAT.c", line 13299: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./HZB_NEAT.c", line 13210: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./HZB_NEAT.c", line 13210: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./HZB_NEAT.c", line 14985: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./HZB_NEAT.c", line 14973: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./HZB_NEAT.c", line 15070: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./HZB_NEAT.c", line 15026: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./HZB_NEAT.c", line 15112: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./HZB_NEAT.c", line 15200: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./HZB_NEAT.c", line 15288: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./HZB_NEAT.c", line 15376: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./HZB_NEAT.c", line 15464: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./HZB_NEAT.c", line 15552: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./HZB_NEAT.c", line 15640: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./HZB_NEAT.c", line 15728: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./HZB_NEAT.c", line 15816: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./HZB_NEAT.c", line 15904: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./HZB_NEAT.c", line 15992: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./HZB_NEAT.c", line 16080: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./HZB_NEAT.c", line 16168: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./HZB_NEAT.c", line 16256: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./HZB_NEAT.c", line 16344: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./HZB_NEAT.c", line 16432: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./HZB_NEAT.c", line 16520: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./HZB_NEAT.c", line 16608: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./HZB_NEAT.c", line 16710: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./HZB_NEAT.c", line 16812: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./HZB_NEAT.c", line 16876: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./HZB_NEAT.c", line 16964: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./HZB_NEAT.c", line 17052: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./HZB_NEAT.c", line 17140: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./HZB_NEAT.c", line 17228: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./HZB_NEAT.c", line 17330: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./HZB_NEAT.c", line 17432: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./HZB_NEAT.c", line 17534: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 30; ^ "./HZB_NEAT.c", line 17598: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 31; ^ "./HZB_NEAT.c", line 17700: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 32; ^ "./HZB_NEAT.c", line 17788: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 33; ^ "./HZB_NEAT.c", line 17837: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 34; ^ "./HZB_NEAT.c", line 17934: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 35; ^ "./HZB_NEAT.c", line 18036: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 36; ^ "./HZB_NEAT.c", line 19266: warning: variable "j" was declared but never referenced [declared_but_not_referenced] long i,j; ^ "./HZB_NEAT.c", line 20945: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./HZB_NEAT.c", line 20946: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./HZB_NEAT.c", line 20946: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./HZB_NEAT.c", line 22053: warning: variable "pp" was set but never used [set_but_not_used] double pp,P2; ^ "./HZB_NEAT.c", line 25882: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./HZB_NEAT.c", line 25883: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./HZB_NEAT.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./HZB_NEAT.c", line 2898: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 88, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 102, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 134, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 158, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 180, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 191, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 200, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 210, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1542, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1546, Generating acc routine seq Generating NVIDIA GPU code str_len: 1555, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4107, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4538, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4558, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4602, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4620, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4642, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4649, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4695, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4758, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4785, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4814, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4825, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4829, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5006, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5037, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5054, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5153, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5237, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5303, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5380, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5652, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5662, Generating acc routine seq Generating NVIDIA GPU code _hash: 5688, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5729, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5740, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5745, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5761, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5768, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6427, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6463, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6523, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6540, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6655, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7733, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7801, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7880, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8348, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8364, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8382, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8429, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 8533, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 8592, Generating acc routine seq Generating NVIDIA GPU code Gravity_guide_Trace: 8858, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10112, Generating acc routine seq Generating NVIDIA GPU code off_F: 11428, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11433, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11443, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11469, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11532, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11663, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11708, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11825, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11943, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11955, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11990, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12241, Generating acc routine seq Generating NVIDIA GPU code merge: 12248, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12352, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12367, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12421, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12538, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12560, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 13100, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 13137, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 13173, Generating acc routine seq Generating NVIDIA GPU code PSD_He_interp1value: 14394, Generating acc routine seq Generating NVIDIA GPU code init: 19882, Generating update device(_Ideal_Det_var,_Sample_var,_Guide0_9_var,_Guide0_19_var,_Guide0_4_var,_Guide0_5_var,_Guide0_6_var,_Guide0_7_var,_Guide0_8_var,_Detector_var,_Guide0_10_var,_Guide0_11_var,_Guide0_12_var,_Guide0_13_var,_Guide0_14_var,_Guide0_15_var,_Guide0_16_var,_Guide0_17_var,_Guide0_18_var,_Guide_Lambda_var,_Guide_DGS_var,_Guide_PSD_var,_Guide_SGS1_var,_Guide_SGS2_var,_Guide2_dXY_var,_Guide2_Lambda_var,_Guide0_var,_Guide2_PSD_var,_Chopper1_var,_Guide_SGS3_var,_Guide_CGS_var,_PG_var,_Sample_pos_var,_Guide_time_var,_Chopper6_var,_instrument_var,_Source_var) class_Progress_bar_trace: 19925, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 20015, Generating acc routine seq Generating NVIDIA GPU code class_Guide_gravity_trace: 20224, Generating acc routine seq Generating NVIDIA GPU code 20357, Reference argument passing prevents parallelization: dt class_Monitor_nD_trace: 20494, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 20784, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 20874, Generating acc routine seq Generating NVIDIA GPU code 21193, 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_Detector_trace: 21505, Generating acc routine seq Generating NVIDIA GPU code raytrace: 22165, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 22977, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 22991, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 22977, Local memory used for .inl_particle_30442,particleN,.inl_.inl_mcneutron_0_30457,.inl_.X2350_30459,.inl_.inl_.X2554_15_30458 22991, Generating implicit firstprivate(seed,_particle) finally: 24615, Generating update self(_Ideal_Det_var,_Sample_var,_Guide0_9_var,_Guide0_19_var,_Guide0_4_var,_Guide0_5_var,_Guide0_6_var,_Guide0_7_var,_Guide0_8_var,_Detector_var,_Guide0_10_var,_Guide0_11_var,_Guide0_12_var,_Guide0_13_var,_Guide0_14_var,_Guide0_15_var,_Guide0_16_var,_Guide0_17_var,_Guide0_18_var,_Guide_Lambda_var,_Guide_DGS_var,_Guide_PSD_var,_Guide_SGS1_var,_Guide_SGS2_var,_Guide2_dXY_var,_Guide2_Lambda_var,_Guide0_var,_Guide2_PSD_var,_Chopper1_var,_Guide_SGS3_var,_Guide_CGS_var,_PG_var,_Sample_pos_var,_Guide_time_var,_Chopper6_var,_instrument_var,_Source_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===