INFO: No output directory specified (--dir) INFO: Using directory: "HZB_FLEX_20240919_001351" INFO: Regenerating c-file: HZB_FLEX.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./HZB_FLEX.c HZB_FLEX.instr Info: 'Guide_curved' is a contributed component. CFLAGS= --> Added COMPONENT Monochromator USERVAR ncol_25 with type int --> Added COMPONENT Monochromator USERVAR nrow_25 with type int ----------------------------------------------------------- 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: ./HZB_FLEX.out DEBUG: CMD: nvc -o ./HZB_FLEX.out ./HZB_FLEX.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./HZB_FLEX.c", line 4499: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./HZB_FLEX.c", line 9605: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./HZB_FLEX.c", line 9593: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./HZB_FLEX.c", line 9646: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./HZB_FLEX.c", line 9736: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./HZB_FLEX.c", line 9785: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./HZB_FLEX.c", line 9847: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./HZB_FLEX.c", line 9896: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./HZB_FLEX.c", line 9958: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./HZB_FLEX.c", line 10007: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./HZB_FLEX.c", line 10066: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./HZB_FLEX.c", line 10115: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./HZB_FLEX.c", line 10180: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./HZB_FLEX.c", line 10242: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./HZB_FLEX.c", line 10307: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./HZB_FLEX.c", line 10356: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./HZB_FLEX.c", line 10415: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./HZB_FLEX.c", line 10464: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./HZB_FLEX.c", line 10526: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./HZB_FLEX.c", line 10575: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./HZB_FLEX.c", line 10648: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./HZB_FLEX.c", line 10706: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./HZB_FLEX.c", line 10755: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./HZB_FLEX.c", line 10826: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./HZB_FLEX.c", line 10875: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./HZB_FLEX.c", line 10941: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./HZB_FLEX.c", line 10990: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./HZB_FLEX.c", line 11067: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./HZB_FLEX.c", line 11116: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./HZB_FLEX.c", line 11182: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./HZB_FLEX.c", line 11248: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./HZB_FLEX.c", line 11297: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 30; ^ "./HZB_FLEX.c", line 11346: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 31; ^ "./HZB_FLEX.c", line 11416: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 32; ^ "./HZB_FLEX.c", line 11482: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 33; ^ "./HZB_FLEX.c", line 11547: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 34; ^ "./HZB_FLEX.c", line 13204: warning: variable "SS" was declared but never referenced [declared_but_not_referenced] int SS=+1; ^ "./HZB_FLEX.c", line 13931: warning: variable "ii" was set but never used [set_but_not_used] int ii, i_bounce; ^ "./HZB_FLEX.c", line 14105: warning: variable "E" was set but never used [set_but_not_used] double E; ^ "./HZB_FLEX.c", line 14236: warning: variable "vlen2" was declared but never referenced [declared_but_not_referenced] double vlen2,nlen2; /* Vector lengths squared */ ^ "./HZB_FLEX.c", line 15196: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./HZB_FLEX.c", line 18946: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./HZB_FLEX.c", line 18947: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./HZB_FLEX.c", line 1508: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./HZB_FLEX.c", line 2911: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 91, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 105, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 139, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 165, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 189, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 200, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 209, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 221, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1555, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1559, Generating acc routine seq Generating NVIDIA GPU code str_len: 1568, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4120, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4551, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4562, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4571, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4583, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4595, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4605, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4615, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4623, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4633, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4655, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4662, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4708, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4743, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4754, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4771, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4782, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4798, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4827, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4838, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4842, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5019, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5050, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5067, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5166, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5250, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5316, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5393, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5665, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5675, Generating acc routine seq Generating NVIDIA GPU code _hash: 5701, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5742, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5758, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5766, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5774, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5781, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6440, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6476, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6536, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6553, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6668, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6723, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7745, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7813, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7892, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8360, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8376, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8394, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8441, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 8546, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 8605, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 8758, Generating acc routine seq Generating NVIDIA GPU code init: 13419, Generating update device(_NL1B_Vertical_Guide_var,_Before_selec_var,_Monochromator_var,_NL1A_NL1B_NL2_NL3_InPile_Entrance_Window_var,_NL1B_Guide_Exit_var,_NL1B_Straight1_Entrance_Window_var,_NL1B_Curved_2_Entrance_Window_var,_NL1B_Curved_Entrance_Window_var,_NL1B_Straight2_var,_After_selec_var,_Origin_var,_NL1A_NL1B_NL2_NL3_InPile_var,_NL1B_Curved_Guide_1_var,_NL1B_Straight1_var,_NL1B_Straight2_Entrance_Window_var,_NL1B_Curved_Guide_2_var,_dpsd1_var,_Sample_center_var,_NL1B_Velocity_Selector_Gap_Entrance_Window_var,_NL1B_Vertical_Guide_Entrance_Window_var,_NL1B_Elliptical_Entrance_Window_var,_elliptical_piece_var,_Gen_Source_var,_Mono_sample_arm_var,_Mono_center_var,_energy_endguide_var,_energy_mono_var,_Sample_analyser_arm_var,_SELEC_var,_div_mono_H_var,_Virtual_source_var,_psd_sam_var,_instrument_var,_div_mono_var,_energy_pre_sample_var) class_Progress_bar_trace: 13464, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 13554, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 13763, Generating acc routine seq Generating NVIDIA GPU code class_Guide_curved_trace: 13916, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 14018, Generating acc routine seq Generating NVIDIA GPU code class_Selector_trace: 14089, Generating acc routine seq Generating NVIDIA GPU code class_Guide_tapering_trace: 14172, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 14454, Generating acc routine seq Generating NVIDIA GPU code class_Guide_channeled_trace: 14498, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 14739, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 14826, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 15171, Generating acc routine seq Generating NVIDIA GPU code class_Div1D_monitor_trace: 15261, Generating acc routine seq Generating NVIDIA GPU code class_PSDlin_monitor_trace: 15344, Generating acc routine seq Generating NVIDIA GPU code raytrace: 15428, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15990, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 16001, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15990, Local memory used for .inl_particle_20487,particleN,.inl_.inl_mcneutron_0_20502,.inl_.X2207_20504,.inl_.inl_.X2410_15_20503 16001, Generating implicit firstprivate(seed,_particle) finally: 17431, Generating update self(_NL1B_Vertical_Guide_var,_Before_selec_var,_Monochromator_var,_NL1A_NL1B_NL2_NL3_InPile_Entrance_Window_var,_NL1B_Guide_Exit_var,_NL1B_Straight1_Entrance_Window_var,_NL1B_Curved_2_Entrance_Window_var,_NL1B_Curved_Entrance_Window_var,_NL1B_Straight2_var,_After_selec_var,_Origin_var,_NL1A_NL1B_NL2_NL3_InPile_var,_NL1B_Curved_Guide_1_var,_NL1B_Straight1_var,_NL1B_Straight2_Entrance_Window_var,_NL1B_Curved_Guide_2_var,_dpsd1_var,_Sample_center_var,_NL1B_Velocity_Selector_Gap_Entrance_Window_var,_NL1B_Vertical_Guide_Entrance_Window_var,_NL1B_Elliptical_Entrance_Window_var,_elliptical_piece_var,_Gen_Source_var,_Mono_sample_arm_var,_Mono_center_var,_energy_endguide_var,_energy_mono_var,_Sample_analyser_arm_var,_SELEC_var,_div_mono_H_var,_Virtual_source_var,_psd_sam_var,_instrument_var,_div_mono_var,_energy_pre_sample_var) mcenabletrace: 5900, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===