INFO: No output directory specified (--dir) INFO: Using directory: "ESS_butterfly_tfocus_NOFOCUS_test_20241121_001114" INFO: Regenerating c-file: ESS_butterfly_tfocus_NOFOCUS_test.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ESS_butterfly_tfocus_NOFOCUS_test.c ESS_butterfly_tfocus_NOFOCUS_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_NOFOCUS_test.out DEBUG: CMD: nvc -o ./ESS_butterfly_tfocus_NOFOCUS_test.out ./ESS_butterfly_tfocus_NOFOCUS_test.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 4553: 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_NOFOCUS_test.c", line 7303: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 9765: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 9765: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 9792: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 9792: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 11689: 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_NOFOCUS_test.c", line 11689: 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_NOFOCUS_test.c", line 11689: 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_NOFOCUS_test.c", line 11689: 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_NOFOCUS_test.c", line 11689: 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_NOFOCUS_test.c", line 11689: 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_NOFOCUS_test.c", line 12046: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13315: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13303: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13382: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13356: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13424: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13526: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13628: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13730: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13832: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 13934: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14039: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14036: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14084: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14081: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14126: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14228: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14330: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14432: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14534: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14636: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14738: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14840: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 14942: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 15012: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 15082: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 15152: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 15222: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 15443: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 15452: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 16464: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 16465: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 17042: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 19473: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 19474: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 1562: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_butterfly_tfocus_NOFOCUS_test.c", line 2965: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 100, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 114, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 157, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 192, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 225, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 236, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 245, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 266, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1609, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1613, Generating acc routine seq Generating NVIDIA GPU code str_len: 1622, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4174, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4616, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4637, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4649, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4659, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4669, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4677, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4687, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4709, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4716, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4762, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4797, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4808, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4825, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4836, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4852, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4881, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4892, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4896, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5073, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5104, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5121, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5220, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5304, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5370, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5447, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5719, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5729, Generating acc routine seq Generating NVIDIA GPU code _hash: 5755, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5796, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5807, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5812, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5820, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5828, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5835, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6494, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6530, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6590, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6607, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6722, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6777, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_spectrum: 7023, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 7050, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 7064, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 7076, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 7083, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 7108, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 7135, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 7160, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 7171, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 7182, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 7227, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 7278, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 7285, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 7292, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 7299, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 7309, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 7319, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 8761, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 10743, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 10811, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 10890, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 11358, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 11374, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 11392, Generating acc routine seq Generating NVIDIA GPU code off_F: 11646, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11651, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11661, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11687, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11750, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11881, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11926, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 12043, Generating acc routine seq Generating NVIDIA GPU code off_compare: 12161, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 12173, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 12208, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12459, Generating acc routine seq Generating NVIDIA GPU code merge: 12466, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12570, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12585, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12639, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12756, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12778, Generating acc routine seq Generating NVIDIA GPU code init: 16134, Generating update device(EminTh,TCollmax,TCollmin,EmaxC,EminC,EmaxTh) 16249, 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: 16292, Generating acc routine seq Generating NVIDIA GPU code class_ESS_butterfly_trace: 16382, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16709, Generating acc routine seq Generating NVIDIA GPU code class_Brilliance_monitor_trace: 16999, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17147, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17664, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17678, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17664, Local memory used for .inl_particle_21013,particleN,.inl_.inl_mcneutron_0_21028,.inl_.X2147_21030,.inl_.inl_.X2352_15_21029 17678, Generating implicit firstprivate(seed,_particle) finally: 18710, 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: 5954, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===