INFO: No output directory specified (--dir) INFO: Using directory: "ESS_IN5_reprate_20240919_000416" INFO: Regenerating c-file: ESS_IN5_reprate.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ESS_IN5_reprate.c ESS_IN5_reprate.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_IN5_reprate.out DEBUG: CMD: nvc -o ./ESS_IN5_reprate.out ./ESS_IN5_reprate.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ESS_IN5_reprate.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 " "./ESS_IN5_reprate.c", line 7300: warning: statement is unreachable [code_is_unreachable] return 1; ^ "./ESS_IN5_reprate.c", line 10190: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_IN5_reprate.c", line 10164: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ESS_IN5_reprate.c", line 10243: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ESS_IN5_reprate.c", line 10231: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ESS_IN5_reprate.c", line 10285: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ESS_IN5_reprate.c", line 10352: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ESS_IN5_reprate.c", line 10419: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ESS_IN5_reprate.c", line 10485: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ESS_IN5_reprate.c", line 10551: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ESS_IN5_reprate.c", line 10613: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ESS_IN5_reprate.c", line 10679: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ESS_IN5_reprate.c", line 10744: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ESS_IN5_reprate.c", line 10808: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ESS_IN5_reprate.c", line 10877: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ESS_IN5_reprate.c", line 10943: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ESS_IN5_reprate.c", line 11008: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ESS_IN5_reprate.c", line 11070: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ESS_IN5_reprate.c", line 11132: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ESS_IN5_reprate.c", line 11198: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ESS_IN5_reprate.c", line 11262: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ESS_IN5_reprate.c", line 11326: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ESS_IN5_reprate.c", line 11391: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ESS_IN5_reprate.c", line 11457: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ESS_IN5_reprate.c", line 11526: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ESS_IN5_reprate.c", line 11588: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./ESS_IN5_reprate.c", line 11654: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./ESS_IN5_reprate.c", line 11719: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./ESS_IN5_reprate.c", line 11781: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./ESS_IN5_reprate.c", line 11847: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./ESS_IN5_reprate.c", line 11913: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./ESS_IN5_reprate.c", line 11982: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./ESS_IN5_reprate.c", line 12051: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 30; ^ "./ESS_IN5_reprate.c", line 12116: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 31; ^ "./ESS_IN5_reprate.c", line 12180: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 32; ^ "./ESS_IN5_reprate.c", line 12244: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 33; ^ "./ESS_IN5_reprate.c", line 12308: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 34; ^ "./ESS_IN5_reprate.c", line 12375: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 35; ^ "./ESS_IN5_reprate.c", line 12441: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 36; ^ "./ESS_IN5_reprate.c", line 12510: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 37; ^ "./ESS_IN5_reprate.c", line 12579: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 38; ^ "./ESS_IN5_reprate.c", line 12644: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 39; ^ "./ESS_IN5_reprate.c", line 12706: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 40; ^ "./ESS_IN5_reprate.c", line 12772: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 41; ^ "./ESS_IN5_reprate.c", line 12837: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 42; ^ "./ESS_IN5_reprate.c", line 12904: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 43; ^ "./ESS_IN5_reprate.c", line 12970: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 44; ^ "./ESS_IN5_reprate.c", line 13036: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 45; ^ "./ESS_IN5_reprate.c", line 13109: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 46; ^ "./ESS_IN5_reprate.c", line 13158: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 47; ^ "./ESS_IN5_reprate.c", line 13225: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 48; ^ "./ESS_IN5_reprate.c", line 13292: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 49; ^ "./ESS_IN5_reprate.c", line 13358: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 50; ^ "./ESS_IN5_reprate.c", line 13501: warning: variable "sign_bl_angle" was set but never used [set_but_not_used] int sign_bl_angle; ^ "./ESS_IN5_reprate.c", line 13510: warning: variable "sin_beamport_angle" was set but never used [set_but_not_used] double cos_beamport_angle, sin_beamport_angle; ^ "./ESS_IN5_reprate.c", line 14966: warning: variable "z0" was set but never used [set_but_not_used] double x0,z0; ^ "./ESS_IN5_reprate.c", line 14967: warning: variable "surf_sign" was set but never used [set_but_not_used] int surf_sign; ^ "./ESS_IN5_reprate.c", line 15754: warning: variable "div" was declared but never referenced [declared_but_not_referenced] double div; ^ "./ESS_IN5_reprate.c", line 20220: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ESS_IN5_reprate.c", line 20221: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ESS_IN5_reprate.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ESS_IN5_reprate.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: 7020, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_spectrum: 7047, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_y0: 7061, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_thermal_y0: 7073, Generating acc routine seq Generating NVIDIA GPU code ESS_2014_Schoenfeldt_cold_x0: 7080, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal: 7105, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold: 7132, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_y0: 7157, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_y0: 7168, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_x0: 7179, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_x0: 7224, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Y: 7275, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Y: 7282, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_Theta120: 7289, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_Theta120: 7296, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_cold_timedist: 7306, Generating acc routine seq Generating NVIDIA GPU code ESS_2015_Schoenfeldt_thermal_timedist: 7316, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8482, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8550, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8629, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9097, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9113, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9131, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9240, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9299, Generating acc routine seq Generating NVIDIA GPU code init: 14839, Generating update device(_source_var,_sample_var,_Lmonslow1_var,_TOFmoderator_var,_TOFfast2_zoom_var,_Lmon_guideend_var,_Lmon_guistart_var,_Fastchop2counter_var,_Lmonfast2_zoom_var,_PSDsample_var,_Esample_var,_TOFLfast2zoom_var,_Lmon_afterfast2_var,_PSD_afterfast2_var,_Guide1_var,_Guidelong1_var,_Lmon_sample_zoom_var,_FOchop1_var,_FOchop3_var,_PSD_afterslow1_var,_Lmon_afterslow1_var,_TOFL_afterfast2_zoom_var,_Guidelong1b_var,_Lmon_afterslow2_var,_PSD_afterslow2_var,_Guidelong2_var,_Lmon_slow2_var,_Lmonfast2_var,_TOFL_afterslow2_var,_TOFLfast2_var,_PSD_beforeballistic_var,_Fastchop1_var,_Fastchop2_var,_FOchop2_var,_TOFdetector_zoom_var,_Guidesample_var,_TOF2Edetector_var,_TOFL_afterfast2_var,_Origin_var,_Guidelong2a_var,_Lmon_beforeballistic_var,_PSDfast2_var,_TOFmoderator_zoom_var,_Edetector_var,_Lmon_normalize_var,_instrument_var,_TOFsample_zoom_var,_TOFLmon1_var,_TOFdetector_var,_PSDslow1_var,_detectorarm_var) class_ESS_butterfly_trace: 14884, Generating acc routine seq Generating NVIDIA GPU code class_Progress_bar_trace: 15171, Generating acc routine seq Generating NVIDIA GPU code class_TOF_monitor_trace: 15261, Generating acc routine seq Generating NVIDIA GPU code class_L_monitor_trace: 15342, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 15415, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 15568, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 15639, Generating acc routine seq Generating NVIDIA GPU code class_TOFLambda_monitor_trace: 15729, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 15817, Generating acc routine seq Generating NVIDIA GPU code class_Tunneling_sample_trace: 15904, Generating acc routine seq Generating NVIDIA GPU code class_TOF2E_monitor_trace: 16104, Generating acc routine seq Generating NVIDIA GPU code raytrace: 16199, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17289, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17300, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17289, Local memory used for .inl_particle_25518,particleN,.inl_.inl_mcneutron_0_25533,.inl_.X2188_25535,.inl_.inl_.X2391_15_25534 17300, Generating implicit firstprivate(seed,_particle) finally: 18898, Generating update self(_sample_var,_source_var,_Lmonslow1_var,_TOFmoderator_var,_TOFfast2_zoom_var,_Lmon_guideend_var,_Lmon_guistart_var,_Fastchop2counter_var,_Lmonfast2_zoom_var,_PSDsample_var,_Esample_var,_TOFLfast2zoom_var,_Lmon_afterfast2_var,_PSD_afterfast2_var,_Guide1_var,_Guidelong1_var,_Lmon_sample_zoom_var,_FOchop1_var,_FOchop3_var,_PSD_afterslow1_var,_Lmon_afterslow1_var,_TOFL_afterfast2_zoom_var,_Guidelong1b_var,_Lmon_afterslow2_var,_PSD_afterslow2_var,_Guidelong2_var,_Lmon_slow2_var,_Lmonfast2_var,_TOFL_afterslow2_var,_TOFLfast2_var,_PSD_beforeballistic_var,_Fastchop1_var,_Fastchop2_var,_FOchop2_var,_TOFdetector_zoom_var,_Guidesample_var,_TOF2Edetector_var,_TOFL_afterfast2_var,_Origin_var,_Guidelong2a_var,_Lmon_beforeballistic_var,_PSDfast2_var,_TOFmoderator_zoom_var,_Edetector_var,_Lmon_normalize_var,_instrument_var,_TOFsample_zoom_var,_TOFLmon1_var,_TOFdetector_var,_PSDslow1_var,_detectorarm_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===