INFO: No output directory specified (--dir) INFO: Using directory: "RTP_DIF_20241118_022533" INFO: Regenerating c-file: RTP_DIF.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./RTP_DIF.c RTP_DIF.instr CFLAGS= --> Added COMPONENT mono1 USERVAR ncol_9 with type int --> Added COMPONENT mono1 USERVAR nrow_9 with type int --> Added COMPONENT mono2 USERVAR ncol_10 with type int --> Added COMPONENT mono2 USERVAR nrow_10 with type int --> Added COMPONENT mono3 USERVAR ncol_11 with type int --> Added COMPONENT mono3 USERVAR nrow_11 with type int WARNING: The parameter format of container_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 mono_cradle -> SPLIT N at component sample_position ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component mono_cradle -> SPLIT within buffer at component sample_position ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./RTP_DIF.out DEBUG: CMD: nvc -o ./RTP_DIF.out ./RTP_DIF.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./RTP_DIF.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_DIF.c", line 10954: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_DIF.c", line 10954: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./RTP_DIF.c", line 10981: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_DIF.c", line 10981: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./RTP_DIF.c", line 11309: 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_DIF.c", line 11309: 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_DIF.c", line 11309: 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_DIF.c", line 11309: 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_DIF.c", line 11309: 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_DIF.c", line 11309: 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_DIF.c", line 11666: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./RTP_DIF.c", line 13436: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./RTP_DIF.c", line 13424: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./RTP_DIF.c", line 13477: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./RTP_DIF.c", line 13567: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./RTP_DIF.c", line 13629: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./RTP_DIF.c", line 13691: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./RTP_DIF.c", line 13793: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./RTP_DIF.c", line 13842: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./RTP_DIF.c", line 13891: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./RTP_DIF.c", line 13940: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./RTP_DIF.c", line 14017: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./RTP_DIF.c", line 14094: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./RTP_DIF.c", line 14171: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./RTP_DIF.c", line 14220: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./RTP_DIF.c", line 14322: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./RTP_DIF.c", line 14424: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./RTP_DIF.c", line 14526: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 16; ^ "./RTP_DIF.c", line 14575: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 17; ^ "./RTP_DIF.c", line 14668: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 18; ^ "./RTP_DIF.c", line 14761: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 19; ^ "./RTP_DIF.c", line 14854: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 20; ^ "./RTP_DIF.c", line 14903: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 21; ^ "./RTP_DIF.c", line 15005: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 22; ^ "./RTP_DIF.c", line 15107: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 23; ^ "./RTP_DIF.c", line 17675: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./RTP_DIF.c", line 17676: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./RTP_DIF.c", line 17679: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./RTP_DIF.c", line 17682: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./RTP_DIF.c", line 17686: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./RTP_DIF.c", line 17688: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./RTP_DIF.c", line 17689: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./RTP_DIF.c", line 17690: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./RTP_DIF.c", line 17692: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./RTP_DIF.c", line 20778: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./RTP_DIF.c", line 20779: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./RTP_DIF.c", line 1538: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./RTP_DIF.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: 7775, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7843, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7922, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8390, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8406, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8424, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8471, Generating acc routine seq Generating NVIDIA GPU code StdReflecFunc: 8576, Generating acc routine seq Generating NVIDIA GPU code TableReflecFunc: 8635, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9950, Generating acc routine seq Generating NVIDIA GPU code off_F: 11266, Generating acc routine seq Generating NVIDIA GPU code off_sign: 11271, Generating acc routine seq Generating NVIDIA GPU code off_normal: 11281, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11307, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11370, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11501, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11546, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11663, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11781, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11793, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11828, Generating acc routine seq Generating NVIDIA GPU code Min_int: 12079, Generating acc routine seq Generating NVIDIA GPU code merge: 12086, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 12190, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 12205, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 12259, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12376, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12398, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 12527, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 12902, Generating acc routine seq Generating NVIDIA GPU code init: 16430, Generating update device(_CoarseCollimator2_var,_source_var,_sample_var,_Be_Position_var,_CoarseCollimator1_var,_instrument_var,_mono3_var,_mono_cradle_var,_lmon_var,_mono1_var,_mono2_var,_mono_rotation_var,_psd_reflect_var,_mono_takeoff_var,_sample_position_var,_sample_out_var,_Origin_var,_sample_psd_var,_container_in_var,_reactor_var,_container_out_var,_det_big_var,_psd_transmit_var,_det_var) class_Progress_bar_trace: 16473, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 16563, Generating acc routine seq Generating NVIDIA GPU code class_Guide_trace: 16772, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16925, Generating acc routine seq Generating NVIDIA GPU code class_Arm_trace: 17215, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 17257, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 17627, Generating acc routine seq Generating NVIDIA GPU code class_Shape_trace: 18113, Generating acc routine seq Generating NVIDIA GPU code raytrace: 18170, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 18669, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 18683, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 18669, Local memory used for .inl_particle_21027,particleN,.inl_.inl_mcneutron_0_21042,.inl_.X2236_21044,.inl_.inl_.X2443_15_21043 18683, Generating implicit firstprivate(seed,_particle) finally: 19721, Generating update self(_CoarseCollimator2_var,_source_var,_sample_var,_Be_Position_var,_CoarseCollimator1_var,_instrument_var,_mono3_var,_mono_cradle_var,_lmon_var,_mono1_var,_mono2_var,_mono_rotation_var,_psd_reflect_var,_mono_takeoff_var,_sample_position_var,_sample_out_var,_Origin_var,_sample_psd_var,_container_in_var,_reactor_var,_container_out_var,_det_big_var,_psd_transmit_var,_det_var) mcenabletrace: 5930, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcch6llgf55wvA8.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-11-18/McStas_8GPU_openacc_5e6_Linux_5e6/RTP_DIF/./RTP_DIF.c:12627: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===