INFO: No output directory specified (--dir) INFO: Using directory: "ILL_BRISP_20240919_002257" INFO: Regenerating c-file: ILL_BRISP.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./ILL_BRISP.c ILL_BRISP.instr Info: 'Guide_honeycomb' is a contributed component. CFLAGS= --> Added COMPONENT Monok USERVAR ncol_6 with type int --> Added COMPONENT Monok USERVAR nrow_6 with type int WARNING: The parameter powder_format of Environment_in is initialized using a static {,,,} vector. -> Such static vectors support literal numbers ONLY. -> Any vector use of variables or defines must happen via a DECLARE/INITIALIZE pointer. ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component Monok -> SPLIT N at component SamplePos ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component Monok -> SPLIT within buffer at component SamplePos ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./ILL_BRISP.out DEBUG: CMD: nvc -o ./ILL_BRISP.out ./ILL_BRISP.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./ILL_BRISP.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 " "./ILL_BRISP.c", line 10704: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_BRISP.c", line 10704: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./ILL_BRISP.c", line 10731: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_BRISP.c", line 10731: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./ILL_BRISP.c", line 11059: 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; ^ "./ILL_BRISP.c", line 11059: 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; ^ "./ILL_BRISP.c", line 11059: 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; ^ "./ILL_BRISP.c", line 11059: 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; ^ "./ILL_BRISP.c", line 11059: 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; ^ "./ILL_BRISP.c", line 11059: 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; ^ "./ILL_BRISP.c", line 11416: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "/usr/include/math.h", line 30: warning: #warning directive: A macro called log was already defined when was included. [warning_directive] # warning A macro called log was already defined when was included. ^ "/usr/include/math.h", line 31: warning: #warning directive: This will cause compilation problems. [warning_directive] # warning This will cause compilation problems. ^ "./ILL_BRISP.c", line 13534: warning: variable "n" was declared but never referenced [declared_but_not_referenced] double n; ^ "./ILL_BRISP.c", line 13513: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] double w_c = 0; ^ "./ILL_BRISP.c", line 13514: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] double w_l = 0; ^ "./ILL_BRISP.c", line 13425: warning: variable "w_c" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_BRISP.c", line 13425: warning: variable "w_l" was declared but never referenced [declared_but_not_referenced] t_Table w_c, w_l; ^ "./ILL_BRISP.c", line 15260: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_BRISP.c", line 15248: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./ILL_BRISP.c", line 15301: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./ILL_BRISP.c", line 15391: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./ILL_BRISP.c", line 15452: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./ILL_BRISP.c", line 15501: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./ILL_BRISP.c", line 15550: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./ILL_BRISP.c", line 15627: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./ILL_BRISP.c", line 15676: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./ILL_BRISP.c", line 15778: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./ILL_BRISP.c", line 15880: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./ILL_BRISP.c", line 15944: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./ILL_BRISP.c", line 16046: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./ILL_BRISP.c", line 16114: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./ILL_BRISP.c", line 16216: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./ILL_BRISP.c", line 16265: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./ILL_BRISP.c", line 16334: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./ILL_BRISP.c", line 16436: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./ILL_BRISP.c", line 16538: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./ILL_BRISP.c", line 16587: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./ILL_BRISP.c", line 16681: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./ILL_BRISP.c", line 16775: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./ILL_BRISP.c", line 16872: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./ILL_BRISP.c", line 16966: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./ILL_BRISP.c", line 17060: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./ILL_BRISP.c", line 17109: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./ILL_BRISP.c", line 17158: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./ILL_BRISP.c", line 17260: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./ILL_BRISP.c", line 17362: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 28; ^ "./ILL_BRISP.c", line 17464: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 29; ^ "./ILL_BRISP.c", line 17566: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 30; ^ "./ILL_BRISP.c", line 17615: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 31; ^ "./ILL_BRISP.c", line 17676: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 32; ^ "./ILL_BRISP.c", line 17728: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_BRISP.c", line 17725: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 33; ^ "./ILL_BRISP.c", line 17785: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./ILL_BRISP.c", line 17770: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 34; ^ "./ILL_BRISP.c", line 17827: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 35; ^ "./ILL_BRISP.c", line 20708: warning: variable "nv" was set but never used [set_but_not_used] float n,m1,nv,mv; ^ "./ILL_BRISP.c", line 20708: warning: variable "mv" was set but never used [set_but_not_used] float n,m1,nv,mv; ^ "./ILL_BRISP.c", line 20713: warning: variable "w_edge" was declared but never referenced [declared_but_not_referenced] double w_edge, w_adj; /* Channel displacement */ ^ "./ILL_BRISP.c", line 20714: warning: variable "h_edge" was declared but never referenced [declared_but_not_referenced] double h_edge, h_adj; ^ "./ILL_BRISP.c", line 21120: warning: variable "zp2" was set but never used [set_but_not_used] double xp2, zp2,xp3=0,vxp2=0,vzp1=0; /* position, velocity */ ^ "./ILL_BRISP.c", line 20918: warning: variable "X" was set but never used [set_but_not_used] double X[5],Z[5]; /* position of interaction locations in the Fermi chopper rotating frame ^ "./ILL_BRISP.c", line 20918: warning: variable "Z" was set but never used [set_but_not_used] double X[5],Z[5]; /* position of interaction locations in the Fermi chopper rotating frame ^ "./ILL_BRISP.c", line 21528: warning: variable "ti" was set but never used [set_but_not_used] double ki_x,ki_y,ki_z,ti,vi,ki; ^ "./ILL_BRISP.c", line 21529: warning: variable "tf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_BRISP.c", line 21529: warning: variable "kf" was set but never used [set_but_not_used] double kf_x,kf_y,kf_z,tf,kf; ^ "./ILL_BRISP.c", line 25690: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./ILL_BRISP.c", line 25691: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./ILL_BRISP.c", line 1562: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./ILL_BRISP.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 Table_Index: 7804, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7872, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7951, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8419, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8435, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8453, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8500, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 8509, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9700, Generating acc routine seq Generating NVIDIA GPU code off_F: 11016, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11021, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11031, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11057, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11120, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11251, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11296, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11413, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11531, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11543, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11578, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11829, Generating acc routine seq Generating NVIDIA GPU code merge: 11836, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11940, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11955, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12009, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12126, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12148, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 12372, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 12431, Generating acc routine seq Generating NVIDIA GPU code Honeycomb_guide_Trace: 12668, Generating acc routine seq Generating NVIDIA GPU code FC_zrot: 12756, Generating acc routine seq Generating NVIDIA GPU code FC_xrot: 12769, Generating acc routine seq Generating NVIDIA GPU code FC_xzrot_dt: 12795, Generating acc routine seq Generating NVIDIA GPU code FC_xzbrent: 12816, Generating acc routine seq Generating NVIDIA GPU code FC_xintersect: 12889, Generating acc routine seq Generating NVIDIA GPU code FC_zintersect: 12896, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_SW: 13315, Generating acc routine seq Generating NVIDIA GPU code Sqw_search_Q_proba_per_w: 13352, Generating acc routine seq Generating NVIDIA GPU code Sqw_integrate_iqSq: 13388, Generating acc routine seq Generating NVIDIA GPU code init: 19287, Generating update device(Ei) 19461, Generating update device(_Monok_var,_Sample_var,_Monitor1_var,_MonoCradle1_var,_MonokOut_var,_MonoCradle2_var,_HC_var,_LmonokOUT_var,_DC_OUT_T_var,_Core_var,_HC_OUT_PSD_var,_FC_var,_Environment_out_var,_FC_OUT_T_var,_FC_IN_T_var,_SamplePos_var,_Origin_var,_EndOfInstrument_var,_C1_var,_SampleXY_var,_Container_in_var,_Environment_in_var,_DC_var,_Detector_Q_var,_Detector_pre_var,_Detector_QE_var,_DetectorTube_var,_Detector_E_var,_Detector_var,_DetectorPos_var,_ThermalSource_var,_ToMonok_var,_Container_out_var,_ToOrigin_var,_instrument_var,_Vessel_var) class_Progress_bar_trace: 19506, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 19596, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 19805, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 19879, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 19959, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 20304, Generating acc routine seq Generating NVIDIA GPU code class_DiskChopper_trace: 20594, Generating acc routine seq Generating NVIDIA GPU code class_Guide_honeycomb_trace: 20684, Generating acc routine seq Generating NVIDIA GPU code class_FermiChopper_trace: 20875, Generating acc routine seq Generating NVIDIA GPU code class_Isotropic_Sqw_trace: 21457, Generating acc routine seq Generating NVIDIA GPU code 21776, Reference argument passing prevents parallelization: u1z Reference argument passing prevents parallelization: u1y Reference argument passing prevents parallelization: u1x Reference argument passing prevents parallelization: solid_angle class_Shape_trace: 22123, Generating acc routine seq Generating NVIDIA GPU code raytrace: 22184, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 22933, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 22944, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 22933, Local memory used for .inl_particle_30266,particleN,.inl_.inl_mcneutron_0_30281,.inl_.X2415_30283,.inl_.inl_.X2620_15_30282 22944, Generating implicit firstprivate(seed,_particle) finally: 24324, Generating update self(_Monok_var,_Sample_var,_Monitor1_var,_MonoCradle1_var,_MonokOut_var,_MonoCradle2_var,_HC_var,_LmonokOUT_var,_DC_OUT_T_var,_Core_var,_HC_OUT_PSD_var,_FC_var,_Environment_out_var,_FC_OUT_T_var,_FC_IN_T_var,_SamplePos_var,_Origin_var,_EndOfInstrument_var,_C1_var,_SampleXY_var,_Container_in_var,_Environment_in_var,_DC_var,_Detector_Q_var,_Detector_pre_var,_Detector_QE_var,_DetectorTube_var,_Detector_E_var,_Detector_var,_DetectorPos_var,_ThermalSource_var,_ToMonok_var,_Container_out_var,_ToOrigin_var,_instrument_var,_Vessel_var) mcenabletrace: 5954, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===