INFO: No output directory specified (--dir) INFO: Using directory: "ESS_butterfly_test_20241124_000913" INFO: Regenerating c-file: ESS_butterfly_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ESS_butterfly_test.c ESS_butterfly_test.instr CFLAGS= ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./ESS_butterfly_test.out DEBUG: CMD: nvc -o ./ESS_butterfly_test.out ./ESS_butterfly_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ESS_butterfly_test.c", line 4541: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./ESS_butterfly_test.c", line 7285: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./ESS_butterfly_test.c", line 9747: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_test.c", line 9747: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_test.c", line 9774: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_test.c", line 9774: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_test.c", line 11671: 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; ^ "./ESS_butterfly_test.c", line 11671: 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; ^ "./ESS_butterfly_test.c", line 11671: 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; ^ "./ESS_butterfly_test.c", line 11671: 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; ^ "./ESS_butterfly_test.c", line 11671: 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; ^ "./ESS_butterfly_test.c", line 11671: 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; ^ "./ESS_butterfly_test.c", line 12028: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_butterfly_test.c", line 13291: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_test.c", line 13279: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ESS_butterfly_test.c", line 13358: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_test.c", line 13332: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ESS_butterfly_test.c", line 13400: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ESS_butterfly_test.c", line 13502: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ESS_butterfly_test.c", line 13604: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ESS_butterfly_test.c", line 13706: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ESS_butterfly_test.c", line 13808: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ESS_butterfly_test.c", line 13910: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ESS_butterfly_test.c", line 14015: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_test.c", line 14012: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ESS_butterfly_test.c", line 14060: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_test.c", line 14057: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ESS_butterfly_test.c", line 14102: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ESS_butterfly_test.c", line 14204: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ESS_butterfly_test.c", line 14306: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ESS_butterfly_test.c", line 14408: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ESS_butterfly_test.c", line 14510: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ESS_butterfly_test.c", line 14612: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ESS_butterfly_test.c", line 14714: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ESS_butterfly_test.c", line 14816: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ESS_butterfly_test.c", line 14918: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ESS_butterfly_test.c", line 14988: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ESS_butterfly_test.c", line 15058: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ESS_butterfly_test.c", line 15128: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ESS_butterfly_test.c", line 15317: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./ESS_butterfly_test.c", line 15326: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./ESS_butterfly_test.c", line 16320: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./ESS_butterfly_test.c", line 16893: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_butterfly_test.c", line 19273: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_butterfly_test.c", line 19274: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_butterfly_test.c", line 1550: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_butterfly_test.c", line 2953: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 98, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 112, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 153, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 186, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 217, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 228, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 237, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 256, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1597, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1601, Generating acc routine seq Generating NVIDIA GPU code str_len: 1610, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4162, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4593, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4637, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4647, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4657, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4665, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4675, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4697, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4704, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4750, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4785, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4796, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4813, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4824, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4840, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4869, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4880, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4884, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5061, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5092, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5109, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5208, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5292, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5358, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5435, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5707, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5717, Generating acc routine seq Generating NVIDIA GPU code _hash: 5743, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5784, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5795, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5800, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5808, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5816, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5823, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6482, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6518, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6578, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6595, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6765, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 7005, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 7032, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 7046, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 7058, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 7065, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 7090, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 7117, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 7142, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 7153, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 7164, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 7209, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 7260, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 7267, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 7274, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 7281, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 7291, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 7301, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8743, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10725, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10793, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10872, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11340, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11356, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11374, Generating acc routine seq Generating NVIDIA GPU code off_F: 11628, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11633, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11643, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11669, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11732, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11863, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11908, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12025, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12143, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12155, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12190, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12441, Generating acc routine seq Generating NVIDIA GPU code merge: 12448, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12552, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12567, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12621, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12738, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12760, Generating acc routine seq Generating NVIDIA GPU code init: 15997, Generating update device(EminTh,TCollmax,TCollmin,EmaxC,EminC,CThermal,EmaxTh,CCold) 16105, Generating update device(_origin_var,_instrument_var,_PSD2_var,_AutoTOF0_var,_AutoL0_var,_Arm2_var,_MonND4_var,_PSD0_var,_PSD1_var,_Arm1_var,_CWidth_var,_BrillmonTHRM_var,_Source_var,_MonND2_2_var,_MonND1_var,_MonND2_var,_MonND3_var,_AutoTOFL0_var,_BrillmonCOLD_COLL_var,_AutoTOFL_var,_BrillmonTHRM_COLL_var,_BrillmonCOLD_var,_TWidth_var) class_Progress_bar_trace: 16148, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 16238, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16560, Generating acc routine seq Generating NVIDIA GPU code class_Brilliance_monitor_trace: 16850, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16996, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17492, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17506, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17492, Local memory used for .inl_particle_20524,particleN,.inl_.inl_mcneutron_0_20539,.inl_.X2142_20541,.inl_.inl_.X2346_15_20540 17506, Generating implicit firstprivate(seed,_particle) finally: 18518, Generating update self(_origin_var,_instrument_var,_PSD2_var,_AutoTOF0_var,_AutoL0_var,_Arm2_var,_MonND4_var,_PSD0_var,_PSD1_var,_Arm1_var,_CWidth_var,_BrillmonTHRM_var,_Source_var,_MonND2_2_var,_MonND1_var,_MonND2_var,_MonND3_var,_AutoTOFL0_var,_BrillmonCOLD_COLL_var,_AutoTOFL_var,_BrillmonTHRM_COLL_var,_BrillmonCOLD_var,_TWidth_var) mcenabletrace: 5942, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===