INFO: No output directory specified (--dir) INFO: Using directory: "ESS_butterfly_tfocus_test_20241206_001809" INFO: Regenerating c-file: ESS_butterfly_tfocus_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ESS_butterfly_tfocus_test.c ESS_butterfly_tfocus_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_tfocus_test.out DEBUG: CMD: nvc -o ./ESS_butterfly_tfocus_test.out ./ESS_butterfly_tfocus_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ESS_butterfly_tfocus_test.c", line 4529: 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_tfocus_test.c", line 7279: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./ESS_butterfly_tfocus_test.c", line 9741: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_tfocus_test.c", line 9741: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_tfocus_test.c", line 9768: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_tfocus_test.c", line 9768: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_tfocus_test.c", line 11665: 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_tfocus_test.c", line 11665: 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_tfocus_test.c", line 11665: 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_tfocus_test.c", line 11665: 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_tfocus_test.c", line 11665: 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_tfocus_test.c", line 11665: 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_tfocus_test.c", line 12022: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_butterfly_tfocus_test.c", line 13293: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_test.c", line 13281: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ESS_butterfly_tfocus_test.c", line 13360: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_test.c", line 13334: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ESS_butterfly_tfocus_test.c", line 13402: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ESS_butterfly_tfocus_test.c", line 13504: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ESS_butterfly_tfocus_test.c", line 13606: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ESS_butterfly_tfocus_test.c", line 13708: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ESS_butterfly_tfocus_test.c", line 13810: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ESS_butterfly_tfocus_test.c", line 13912: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ESS_butterfly_tfocus_test.c", line 14017: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_test.c", line 14014: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ESS_butterfly_tfocus_test.c", line 14062: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_test.c", line 14059: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ESS_butterfly_tfocus_test.c", line 14104: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ESS_butterfly_tfocus_test.c", line 14206: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ESS_butterfly_tfocus_test.c", line 14308: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ESS_butterfly_tfocus_test.c", line 14410: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ESS_butterfly_tfocus_test.c", line 14512: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ESS_butterfly_tfocus_test.c", line 14614: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ESS_butterfly_tfocus_test.c", line 14716: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ESS_butterfly_tfocus_test.c", line 14818: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ESS_butterfly_tfocus_test.c", line 14920: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ESS_butterfly_tfocus_test.c", line 14990: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ESS_butterfly_tfocus_test.c", line 15060: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ESS_butterfly_tfocus_test.c", line 15130: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ESS_butterfly_tfocus_test.c", line 15200: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./ESS_butterfly_tfocus_test.c", line 15421: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./ESS_butterfly_tfocus_test.c", line 15430: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./ESS_butterfly_tfocus_test.c", line 16441: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./ESS_butterfly_tfocus_test.c", line 16442: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./ESS_butterfly_tfocus_test.c", line 17011: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_butterfly_tfocus_test.c", line 19430: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_butterfly_tfocus_test.c", line 19431: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_butterfly_tfocus_test.c", line 1538: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_butterfly_tfocus_test.c", line 2941: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 96, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 110, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 149, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 180, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 209, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 220, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 229, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 246, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1585, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1589, Generating acc routine seq Generating NVIDIA GPU code str_len: 1598, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4150, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4581, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4601, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4635, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4653, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4663, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4685, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4692, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4738, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4773, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4784, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4801, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4812, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4828, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4857, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4868, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4872, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5049, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5080, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5097, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5196, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5280, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5346, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5423, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5695, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5705, Generating acc routine seq Generating NVIDIA GPU code _hash: 5731, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5772, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5783, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5788, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5796, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5804, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5811, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6470, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6506, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6566, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6583, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6698, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6753, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 6999, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 7026, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 7040, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 7052, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 7059, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 7084, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 7111, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 7136, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 7147, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 7158, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 7203, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 7254, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 7261, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 7268, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 7275, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 7285, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 7295, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8737, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10719, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10787, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10866, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11334, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11350, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11368, Generating acc routine seq Generating NVIDIA GPU code off_F: 11622, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11627, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11637, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11663, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11726, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11857, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11902, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12019, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12137, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12149, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12184, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12435, Generating acc routine seq Generating NVIDIA GPU code merge: 12442, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12546, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12561, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12615, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12732, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12754, Generating acc routine seq Generating NVIDIA GPU code init: 16226, 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,_AutoTOFLend_var,_BrillmonTHRM_COLL_var,_BrillmonCOLD_var,_AutoTOFL_var,_TWidth_var) class_Progress_bar_trace: 16269, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 16359, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16678, Generating acc routine seq Generating NVIDIA GPU code class_Brilliance_monitor_trace: 16968, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17112, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17629, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17643, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17629, Local memory used for .inl_particle_21383,particleN,.inl_.inl_mcneutron_0_21398,.inl_.X2143_21400,.inl_.inl_.X2348_15_21399 17643, Generating implicit firstprivate(seed,_particle) finally: 18671, Generating update self(_instrument_var,_origin_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,_AutoTOFLend_var,_BrillmonTHRM_COLL_var,_BrillmonCOLD_var,_AutoTOFL_var,_TWidth_var) mcenabletrace: 5930, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===