INFO: No output directory specified (--dir) INFO: Using directory: "FZJ_BenchmarkSfin2_20240919_001220" INFO: Regenerating c-file: FZJ_BenchmarkSfin2.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./FZJ_BenchmarkSfin2.c FZJ_BenchmarkSfin2.instr Info: 'CavitiesIn' is a contributed component. Info: 'Transmission_polarisatorABSnT' is a contributed component. Info: 'CavitiesOut' is a contributed component. Info: 'SANS_benchmark2' is a contributed component. Info: 'TOFSANSdet' is a contributed component. CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component repeat ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component repeat ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./FZJ_BenchmarkSfin2.out DEBUG: CMD: nvc -o ./FZJ_BenchmarkSfin2.out ./FZJ_BenchmarkSfin2.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./FZJ_BenchmarkSfin2.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 " "./FZJ_BenchmarkSfin2.c", line 7257: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./FZJ_BenchmarkSfin2.c", line 11574: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./FZJ_BenchmarkSfin2.c", line 11574: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./FZJ_BenchmarkSfin2.c", line 11601: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./FZJ_BenchmarkSfin2.c", line 11601: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./FZJ_BenchmarkSfin2.c", line 11929: 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; ^ "./FZJ_BenchmarkSfin2.c", line 11929: 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; ^ "./FZJ_BenchmarkSfin2.c", line 11929: 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; ^ "./FZJ_BenchmarkSfin2.c", line 11929: 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; ^ "./FZJ_BenchmarkSfin2.c", line 11929: 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; ^ "./FZJ_BenchmarkSfin2.c", line 11929: 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; ^ "./FZJ_BenchmarkSfin2.c", line 12286: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./FZJ_BenchmarkSfin2.c", line 13225: warning: variable "n1" was declared but never referenced [declared_but_not_referenced] double n1,n2; ^ "./FZJ_BenchmarkSfin2.c", line 13225: warning: variable "n2" was declared but never referenced [declared_but_not_referenced] double n1,n2; ^ "/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. ^ "./FZJ_BenchmarkSfin2.c", line 13433: warning: variable "BBB" was declared but never referenced [declared_but_not_referenced] double G,P,gam,B,k,AAA,BBB,erf,QQ; ^ "./FZJ_BenchmarkSfin2.c", line 14456: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./FZJ_BenchmarkSfin2.c", line 14453: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./FZJ_BenchmarkSfin2.c", line 14497: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./FZJ_BenchmarkSfin2.c", line 14568: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./FZJ_BenchmarkSfin2.c", line 14623: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./FZJ_BenchmarkSfin2.c", line 14681: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./FZJ_BenchmarkSfin2.c", line 14754: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./FZJ_BenchmarkSfin2.c", line 14827: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./FZJ_BenchmarkSfin2.c", line 14929: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./FZJ_BenchmarkSfin2.c", line 14991: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./FZJ_BenchmarkSfin2.c", line 15053: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./FZJ_BenchmarkSfin2.c", line 15108: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./FZJ_BenchmarkSfin2.c", line 15186: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./FZJ_BenchmarkSfin2.c", line 15241: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./FZJ_BenchmarkSfin2.c", line 15303: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./FZJ_BenchmarkSfin2.c", line 15365: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./FZJ_BenchmarkSfin2.c", line 15423: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./FZJ_BenchmarkSfin2.c", line 15472: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./FZJ_BenchmarkSfin2.c", line 15531: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./FZJ_BenchmarkSfin2.c", line 15690: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./FZJ_BenchmarkSfin2.c", line 15699: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./FZJ_BenchmarkSfin2.c", line 17140: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./FZJ_BenchmarkSfin2.c", line 17141: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./FZJ_BenchmarkSfin2.c", line 18241: warning: variable "edge" was declared but never referenced [declared_but_not_referenced] double edge; ^ "./FZJ_BenchmarkSfin2.c", line 18242: warning: variable "n1" was declared but never referenced [declared_but_not_referenced] double n1, n2; ^ "./FZJ_BenchmarkSfin2.c", line 18242: warning: variable "n2" was declared but never referenced [declared_but_not_referenced] double n1, n2; ^ "./FZJ_BenchmarkSfin2.c", line 18686: warning: variable "thmax" was set but never used [set_but_not_used] double qmax,qmaxl,Ymax,Xmax,thmax; ^ "./FZJ_BenchmarkSfin2.c", line 20194: warning: variable "Qdx" was declared but never referenced [declared_but_not_referenced] double Qxx,Qyy,Qdx,Qdy; ^ "./FZJ_BenchmarkSfin2.c", line 20194: warning: variable "Qdy" was declared but never referenced [declared_but_not_referenced] double Qxx,Qyy,Qdx,Qdy; ^ "./FZJ_BenchmarkSfin2.c", line 21663: warning: variable "x" was declared but never referenced [declared_but_not_referenced] double x; ^ "./FZJ_BenchmarkSfin2.c", line 21664: warning: variable "i" was declared but never referenced [declared_but_not_referenced] int i; ^ "./FZJ_BenchmarkSfin2.c", line 21842: warning: variable "radius" was declared but never referenced [declared_but_not_referenced] double radius = 0; ^ "./FZJ_BenchmarkSfin2.c", line 21843: warning: variable "h" was declared but never referenced [declared_but_not_referenced] double h = 0; ^ "./FZJ_BenchmarkSfin2.c", line 22361: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./FZJ_BenchmarkSfin2.c", line 22362: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./FZJ_BenchmarkSfin2.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./FZJ_BenchmarkSfin2.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 ESS_2015_Schoenfeldt_cold_spectrum: 6977, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 7004, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 7018, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 7030, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 7037, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 7062, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 7089, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 7114, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 7125, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 7136, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 7181, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 7232, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 7239, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 7246, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 7253, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 7263, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 7273, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8469, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8537, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8616, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9084, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9100, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9118, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9196, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9255, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 10570, Generating acc routine seq Generating NVIDIA GPU code off_F: 11886, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11891, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11901, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11927, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11990, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 12121, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 12166, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12283, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12401, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12413, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12448, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12699, Generating acc routine seq Generating NVIDIA GPU code merge: 12706, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12810, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12825, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12879, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12996, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 13018, Generating acc routine seq Generating NVIDIA GPU code Polarizer_guide_Trace: 13222, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_min: 13296, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_max: 13300, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_imin: 13304, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code sb_imax: 13308, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code gamma: 13313, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code errf: 13361, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code J1: 13393, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code dSigdW: 13422, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code init: 17013, Generating update device(_instrument_var,_smpap_var,_repeat_var,_passNL_var,_Bender1_var,_Bender2_var,_vorpl_var,_source_var,_origin_var,_Monitor_var,_pbar_var,_cav1_var,_det_var,_guide1_var,_sample_var,_polzr_var,_rspin_var,_cav2_var,_guide2_var) class_ESS_butterfly_trace: 17058, Generating acc routine seq Generating NVIDIA GPU code class_Set_pol_trace: 17345, Generating acc routine seq Generating NVIDIA GPU code class_Progress_bar_trace: 17406, Generating acc routine seq Generating NVIDIA GPU code class_Bender_trace: 17496, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17699, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 17989, Generating acc routine seq Generating NVIDIA GPU code class_CavitiesIn_trace: 18142, Generating acc routine seq Generating NVIDIA GPU code class_Transmission_polarisatorABSnT_trace: 18192, Generating acc routine seq Generating NVIDIA GPU code 18293, Reference argument passing prevents parallelization: dt Reference argument passing prevents parallelization: dt0 class_CavitiesOut_trace: 18567, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 18615, Generating acc routine seq Generating NVIDIA GPU code class_SANS_benchmark2_trace: 18659, Generating acc routine seq Generating NVIDIA GPU code class_TOFSANSdet_trace: 18934, Generating acc routine seq Generating NVIDIA GPU code raytrace: 19179, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 19603, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 19614, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 19603, Local memory used for .inl_particle_19911,particleN,.inl_.inl_mcneutron_0_19926,.inl_.X2411_19928,.inl_.inl_.X2621_15_19927 19614, Generating implicit firstprivate(seed,_particle) finally: 21028, Generating update self(_instrument_var,_smpap_var,_repeat_var,_passNL_var,_Bender1_var,_Bender2_var,_source_var,_vorpl_var,_origin_var,_Monitor_var,_pbar_var,_cav1_var,_det_var,_guide1_var,_sample_var,_polzr_var,_rspin_var,_cav2_var,_guide2_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===