INFO: No output directory specified (--dir) INFO: Using directory: "RTP_SANS_20241121_023200" INFO: Regenerating c-file: RTP_SANS.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./RTP_SANS.c RTP_SANS.instr Info: 'PSD_monitor_rad' is a contributed component. CFLAGS= --> Added COMPONENT mono1 USERVAR ncol_14 with type int --> Added COMPONENT mono1 USERVAR nrow_14 with type int --> Added COMPONENT mono2 USERVAR ncol_15 with type int --> Added COMPONENT mono2 USERVAR nrow_15 with type int --> Added COMPONENT mono3 USERVAR ncol_16 with type int --> Added COMPONENT mono3 USERVAR nrow_16 with type int WARNING: The parameter format of Be_Cryostat 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 mono_cradle -> SPLIT N at component sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component mono_cradle -> SPLIT within buffer at component sample ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./RTP_SANS.out DEBUG: CMD: nvc -o ./RTP_SANS.out ./RTP_SANS.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./RTP_SANS.c", line 4529: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./RTP_SANS.c", line 10669: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_SANS.c", line 10669: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_SANS.c", line 10696: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_SANS.c", line 10696: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_SANS.c", line 11024: 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; ^ "./RTP_SANS.c", line 11024: 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; ^ "./RTP_SANS.c", line 11024: 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; ^ "./RTP_SANS.c", line 11024: 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; ^ "./RTP_SANS.c", line 11024: 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; ^ "./RTP_SANS.c", line 11024: 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; ^ "./RTP_SANS.c", line 11381: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./RTP_SANS.c", line 13524: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./RTP_SANS.c", line 13512: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./RTP_SANS.c", line 13565: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./RTP_SANS.c", line 13655: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./RTP_SANS.c", line 13757: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./RTP_SANS.c", line 13819: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./RTP_SANS.c", line 13881: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./RTP_SANS.c", line 13983: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./RTP_SANS.c", line 14032: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./RTP_SANS.c", line 14125: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./RTP_SANS.c", line 14218: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./RTP_SANS.c", line 14311: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./RTP_SANS.c", line 14413: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./RTP_SANS.c", line 14462: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./RTP_SANS.c", line 14511: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./RTP_SANS.c", line 14588: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./RTP_SANS.c", line 14665: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./RTP_SANS.c", line 14742: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./RTP_SANS.c", line 14791: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./RTP_SANS.c", line 14893: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./RTP_SANS.c", line 14995: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./RTP_SANS.c", line 15097: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./RTP_SANS.c", line 15159: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./RTP_SANS.c", line 15261: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./RTP_SANS.c", line 15329: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 24; ^ "./RTP_SANS.c", line 15431: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 25; ^ "./RTP_SANS.c", line 15492: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 26; ^ "./RTP_SANS.c", line 15553: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 27; ^ "./RTP_SANS.c", line 17915: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./RTP_SANS.c", line 17916: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./RTP_SANS.c", line 17919: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./RTP_SANS.c", line 17922: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./RTP_SANS.c", line 17926: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./RTP_SANS.c", line 17928: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./RTP_SANS.c", line 17929: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./RTP_SANS.c", line 17930: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./RTP_SANS.c", line 17932: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./RTP_SANS.c", line 18728: warning: variable "d_phi" was declared but never referenced [declared_but_not_referenced] double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./RTP_SANS.c", line 18728: warning: variable "theta" was declared but never referenced [declared_but_not_referenced] double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./RTP_SANS.c", line 18728: warning: variable "my_s" was declared but never referenced [declared_but_not_referenced] double t0, t1, v, l_full, l, l_1, dt, d_phi, theta, my_s; ^ "./RTP_SANS.c", line 18729: warning: variable "axis_x" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./RTP_SANS.c", line 18729: warning: variable "axis_y" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./RTP_SANS.c", line 18729: warning: variable "axis_z" was declared but never referenced [declared_but_not_referenced] double aim_x=0, aim_y=0, aim_z=1, axis_x, axis_y, axis_z; ^ "./RTP_SANS.c", line 18730: warning: variable "arg" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18730: warning: variable "tmp_vx" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18730: warning: variable "tmp_vy" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18730: warning: variable "tmp_vz" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18730: warning: variable "vout_x" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18730: warning: variable "vout_y" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 18730: warning: variable "vout_z" was declared but never referenced [declared_but_not_referenced] double arg, tmp_vx, tmp_vy, tmp_vz, vout_x, vout_y, vout_z; ^ "./RTP_SANS.c", line 21983: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./RTP_SANS.c", line 21984: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./RTP_SANS.c", line 1538: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./RTP_SANS.c", line 2941: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 96, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 110, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 149, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 180, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 209, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 220, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 229, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 246, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1585, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1589, Generating acc routine seq Generating NVIDIA GPU code str_len: 1598, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4150, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4581, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4601, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4613, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4625, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4635, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4645, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4653, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4663, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4685, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4692, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4738, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4773, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4784, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4801, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4812, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4828, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4857, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4868, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4872, Generating acc routine seq Generating NVIDIA GPU code mccoordschange: 5049, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5080, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5097, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5196, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5280, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5346, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5423, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5695, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5705, Generating acc routine seq Generating NVIDIA GPU code _hash: 5731, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5772, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5783, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5788, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5796, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5804, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5811, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6470, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6506, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6566, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6583, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6698, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6753, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7777, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7845, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7924, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8392, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8408, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8426, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8473, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9665, Generating acc routine seq Generating NVIDIA GPU code off_F: 10981, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10986, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10996, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11022, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11085, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11216, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11261, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11378, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11496, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11508, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11543, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11794, Generating acc routine seq Generating NVIDIA GPU code merge: 11801, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11905, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11920, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11974, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12091, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12113, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 12338, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 12397, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 12896, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 12940, Generating acc routine seq Generating NVIDIA GPU code init: 17021, Generating update device(_CoarseCollimator2_var,_source_var,_source_monitor_var,_sample_var,_Be_Position_var,_CoarseCollimator1_var,_lmon_reflect2_var,_Be_Filter_var,_Be_Cryostat_out_var,_Be_Cryostat_var,_instrument_var,_mono3_var,_mono_cradle_var,_lmon_var,_mono1_var,_mono2_var,_mono_rotation_var,_psd_reflect_var,_mono_takeoff_var,_lmo_afterBe_var,_PSDrad_var,_reactor_var,_sample_psd_var,_det_tube_var,_Origin_var,_coll1_var,_psd_transmit_var,_det_var) class_Progress_bar_trace: 17064, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 17154, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 17363, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 17672, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 17825, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 17867, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 18334, Generating acc routine seq Generating NVIDIA GPU code class_Sans_spheres_trace: 18704, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_rad_trace: 18843, Generating acc routine seq Generating NVIDIA GPU code class_Shape_trace: 18902, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18959, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 19574, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 19588, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 19574, Local memory used for .inl_particle_23554,particleN,.inl_.inl_mcneutron_0_23569,.inl_.X2290_23571,.inl_.inl_.X2497_15_23570 19588, Generating implicit firstprivate(seed,_particle) finally: 20792, Generating update self(_CoarseCollimator2_var,_source_var,_source_monitor_var,_sample_var,_Be_Position_var,_CoarseCollimator1_var,_lmon_reflect2_var,_Be_Filter_var,_Be_Cryostat_out_var,_Be_Cryostat_var,_instrument_var,_mono3_var,_mono_cradle_var,_lmon_var,_mono1_var,_mono2_var,_mono_rotation_var,_psd_reflect_var,_mono_takeoff_var,_lmo_afterBe_var,_PSDrad_var,_reactor_var,_sample_psd_var,_det_tube_var,_Origin_var,_coll1_var,_psd_transmit_var,_det_var) mcenabletrace: 5930, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcAqTSouPP1kVc.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-11-21/McStas_8GPU_openacc_1e7_Linux_1e7/RTP_SANS/./RTP_SANS.c:12621: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===