INFO: No output directory specified (--dir) INFO: Using directory: "HZB_FLEX_20241222_061656" INFO: Regenerating c-file: HZB_FLEX.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS -t -o ./HZB_FLEX.c HZB_FLEX.instr 2024-12-22 06:17:38.798 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:41 - sort includes :Source_gen(0):read_table-lib :Guide(0):read_table-lib :Guide(1):ref-lib :ref-lib(0):read_table-lib :Guide_curved(0):ref-lib :Guide_tapering(0):ref-lib :Guide_channeled(0):ref-lib :Monochromator_curved(0):read_table-lib 2024-12-22 06:17:38.798 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-22 06:17:38.798 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-22 06:17:38.798 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-22 06:17:38.799 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-22 06:17:38.799 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib 2024-12-22 06:17:38.799 | DEBUG | mccode_antlr.translators.c:sort_include_hierarchy:66 - sorted to read_table-lib ref-lib The instrument has 10 parameters ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> GPU kernel from component Origin -> GPU kernel from component Gen_Source -> GPU kernel from component NL1A_NL1B_NL2_NL3_InPile_Entrance_Window -> GPU kernel from component NL1A_NL1B_NL2_NL3_InPile -> GPU kernel from component NL1B_Straight1_Entrance_Window -> GPU kernel from component NL1B_Straight1 -> GPU kernel from component NL1B_Curved_Entrance_Window -> GPU kernel from component NL1B_Curved_Guide_1 -> GPU kernel from component NL1B_Velocity_Selector_Gap_Entrance_Window -> GPU kernel from component Before_selec -> GPU kernel from component SELEC -> GPU kernel from component After_selec -> GPU kernel from component NL1B_Curved_2_Entrance_Window -> GPU kernel from component NL1B_Curved_Guide_2 -> GPU kernel from component NL1B_Straight2_Entrance_Window -> GPU kernel from component NL1B_Straight2 -> GPU kernel from component NL1B_Elliptical_Entrance_Window -> GPU kernel from component elliptical_piece -> GPU kernel from component Virtual_source -> GPU kernel from component NL1B_Vertical_Guide_Entrance_Window -> GPU kernel from component NL1B_Vertical_Guide -> GPU kernel from component NL1B_Guide_Exit -> GPU kernel from component energy_endguide -> GPU kernel from component Mono_center -> GPU kernel from component Monochromator -> GPU kernel from component Mono_sample_arm -> GPU kernel from component energy_mono -> GPU kernel from component energy_pre_sample -> GPU kernel from component Sample_center -> GPU kernel from component Sample_analyser_arm -> GPU kernel from component div_mono -> GPU kernel from component div_mono_H -> GPU kernel from component psd_sam -> GPU kernel from component dpsd1 ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas-antlr -I$MCSTAS finished INFO: Recompiling: ./HZB_FLEX.out DEBUG: CMD: nvc -o ./HZB_FLEX.out ./HZB_FLEX.c -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,-rpath-link,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -mtune=haswell -fPIC -O2 -isystem /u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./HZB_FLEX.c", line 4498: 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 9575: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./HZB_FLEX.c", line 12664: warning: variable "SS" was declared but never referenced [declared_but_not_referenced] int SS=+1; ^ "./HZB_FLEX.c", line 13353: warning: variable "ii" was set but never used [set_but_not_used] int ii, i_bounce; ^ "./HZB_FLEX.c", line 13527: warning: variable "E" was set but never used [set_but_not_used] double E; ^ "./HZB_FLEX.c", line 13658: warning: variable "vlen2" was declared but never referenced [declared_but_not_referenced] double vlen2,nlen2; /* Vector lengths squared */ ^ "./HZB_FLEX.c", line 14618: warning: variable "v" was declared but never referenced [declared_but_not_referenced] double v, vn; ^ "./HZB_FLEX.c", line 18263: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./HZB_FLEX.c", line 18264: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./HZB_FLEX.c", line 1506: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./HZB_FLEX.c", line 2909: 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: 201, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 210, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 222, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1553, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1557, Generating acc routine seq Generating NVIDIA GPU code str_len: 1566, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4119, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4550, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4561, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4594, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4604, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4614, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4622, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4632, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4654, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4661, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4707, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4742, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4753, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4770, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4781, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4797, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4826, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4837, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4841, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5018, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5049, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5066, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5165, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5249, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5315, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5392, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5664, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5674, Generating acc routine seq Generating NVIDIA GPU code _hash: 5700, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5741, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5752, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5757, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5765, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5773, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5780, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6437, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6533, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6550, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6665, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6720, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 7059, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 7091, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 8570, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 8638, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 8717, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 9185, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 9201, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 9219, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 9285, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 9344, Generating acc routine seq Generating NVIDIA GPU code init: 12844, 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: 12885, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 12975, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 13185, Generating acc routine seq Generating NVIDIA GPU code class_Guide_curved_trace: 13338, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 13440, Generating acc routine seq Generating NVIDIA GPU code class_Selector_trace: 13511, Generating acc routine seq Generating NVIDIA GPU code class_Guide_tapering_trace: 13594, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 13876, Generating acc routine seq Generating NVIDIA GPU code class_Guide_channeled_trace: 13920, Generating acc routine seq Generating NVIDIA GPU code class_E_monitor_trace: 14161, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 14248, Generating acc routine seq Generating NVIDIA GPU code class_Divergence_monitor_trace: 14593, Generating acc routine seq Generating NVIDIA GPU code class_Div1D_monitor_trace: 14683, Generating acc routine seq Generating NVIDIA GPU code class_PSDlin_monitor_trace: 14766, Generating acc routine seq Generating NVIDIA GPU code raytrace: 14851, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 15412, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 15426, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 15412, Local memory used for .inl_particle_20486,particleN,.inl_.inl_mcneutron_0_20501,.inl_.X2217_20503,.inl_.inl_.X2420_15_20502 15426, Generating implicit firstprivate(seed,_particle) finally: 16847, 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: 5899, Generating update device(mcdotrace) /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: warning: /tmp/pgcudafatZuJQgzjgsNCIm.o: missing .note.GNU-stack section implies executable stack /u/data/pkwi/McStas/mcstas/3.x-dev/tools/../miniconda3/bin//ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker DEBUG: CMD: nvc finished INFO: ===