INFO: No output directory specified (--dir) INFO: Using directory: "templateDIFF_20241118_023405" INFO: Regenerating c-file: templateDIFF.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./templateDIFF.c templateDIFF.instr CFLAGS= --> Added COMPONENT Monok USERVAR ncol_7 with type int --> Added COMPONENT Monok USERVAR nrow_7 with type int WARNING: The parameter format of Sample 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 Sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: -> SPLIT within buffer at component Monok -> SPLIT within buffer at component Sample ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./templateDIFF.out DEBUG: CMD: nvc -o ./templateDIFF.out ./templateDIFF.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC "./templateDIFF.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 " "./templateDIFF.c", line 10654: warning: variable "dt" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 10654: warning: variable "dy" was set but never used [set_but_not_used] double dt, dy; ^ "./templateDIFF.c", line 10681: warning: variable "dx" was set but never used [set_but_not_used] double dx, dy; ^ "./templateDIFF.c", line 10681: warning: variable "dy" was set but never used [set_but_not_used] double dx, dy; ^ "./templateDIFF.c", line 11009: 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; ^ "./templateDIFF.c", line 11009: 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; ^ "./templateDIFF.c", line 11009: 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; ^ "./templateDIFF.c", line 11009: 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; ^ "./templateDIFF.c", line 11009: 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; ^ "./templateDIFF.c", line 11009: 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; ^ "./templateDIFF.c", line 11366: warning: variable "plane_Eq" was declared but never referenced [declared_but_not_referenced] double plane_Eq [4]; ^ "./templateDIFF.c", line 13157: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./templateDIFF.c", line 13145: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./templateDIFF.c", line 13198: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./templateDIFF.c", line 13288: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./templateDIFF.c", line 13337: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./templateDIFF.c", line 13398: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./templateDIFF.c", line 13500: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./templateDIFF.c", line 13602: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./templateDIFF.c", line 13679: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./templateDIFF.c", line 13728: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 9; ^ "./templateDIFF.c", line 13789: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 10; ^ "./templateDIFF.c", line 13891: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 11; ^ "./templateDIFF.c", line 13949: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 12; ^ "./templateDIFF.c", line 14042: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 13; ^ "./templateDIFF.c", line 14108: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 14; ^ "./templateDIFF.c", line 14210: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 15; ^ "./templateDIFF.c", line 16866: warning: variable "type" was set but never used [set_but_not_used] char type = '\0'; ^ "./templateDIFF.c", line 16867: warning: variable "itype" was set but never used [set_but_not_used] int itype = 0; ^ "./templateDIFF.c", line 16870: warning: variable "nb_reuses" was declared but never referenced [declared_but_not_referenced] int nb_reuses = line_info.nb_reuses; ^ "./templateDIFF.c", line 16873: warning: variable "vcache" was set but never used [set_but_not_used] double vcache = line_info.v; ^ "./templateDIFF.c", line 16877: warning: variable "lfree" was set but never used [set_but_not_used] double lfree = line_info.lfree; ^ "./templateDIFF.c", line 16879: warning: variable "xs_compute" was declared but never referenced [declared_but_not_referenced] long xs_compute = line_info.xs_compute; ^ "./templateDIFF.c", line 16880: warning: variable "xs_reuse" was declared but never referenced [declared_but_not_referenced] long xs_reuse = line_info.xs_reuse; ^ "./templateDIFF.c", line 16881: warning: variable "xs_calls" was declared but never referenced [declared_but_not_referenced] long xs_calls = line_info.xs_calls; ^ "./templateDIFF.c", line 16883: warning: variable "dq" was set but never used [set_but_not_used] double dq = line_info.dq; ^ "./templateDIFF.c", line 19798: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./templateDIFF.c", line 19799: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./templateDIFF.c", line 1508: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./templateDIFF.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: 7762, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7830, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7909, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8377, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8393, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8411, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8458, Generating acc routine seq Generating NVIDIA GPU code Monitor_nD_Trace: 9650, Generating acc routine seq Generating NVIDIA GPU code off_F: 10966, Generating acc routine seq Generating NVIDIA GPU code off_sign: 10971, Generating acc routine seq Generating NVIDIA GPU code off_normal: 10981, Generating acc routine seq Generating NVIDIA GPU code off_pnpoly: 11007, Generating acc routine seq Generating NVIDIA GPU code off_intersectPoly: 11070, Generating acc routine seq Generating NVIDIA GPU code off_init_planes: 11201, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod: 11246, Generating acc routine seq Generating NVIDIA GPU code off_clip_3D_mod_grav: 11363, Generating acc routine seq Generating NVIDIA GPU code off_compare: 11481, Generating acc routine seq Generating NVIDIA GPU code off_cleanDouble: 11493, Generating acc routine seq Generating NVIDIA GPU code off_cleanInOut: 11528, Generating acc routine seq Generating NVIDIA GPU code Min_int: 11779, Generating acc routine seq Generating NVIDIA GPU code merge: 11786, Generating acc routine seq Generating NVIDIA GPU code p_to_quadratic: 11890, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code quadraticSolve: 11905, Generating implicit acc routine seq Generating acc routine seq Generating NVIDIA GPU code off_intersect_all: 11959, Generating acc routine seq Generating NVIDIA GPU code off_intersect: 12076, Generating acc routine seq Generating NVIDIA GPU code off_x_intersect: 12098, Generating acc routine seq Generating NVIDIA GPU code GAUSS_monocurved: 12227, Generating acc routine seq Generating NVIDIA GPU code calc_xsect: 12614, Generating acc routine seq Generating NVIDIA GPU code init: 15723, Generating update device(_Monok_var,_Slit_Sample_var,_instrument_var,_Diff_Mono_Lambda_var,_Diff_BananaTheta_var,_Diff_Sample_Lambda_var,_mono_out_var,_mono_cradle_var,_Alpha_One_var,_Diff_Mono_XY_var,_Sample_var,_Origin_var,_Source_var,_Diff_BananaPSD_var,_Alpha_Two_var,_collimador_radial_var) class_Progress_bar_trace: 15766, Generating acc routine seq Generating NVIDIA GPU code class_Source_gen_trace: 15856, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_linear_trace: 16065, Generating acc routine seq Generating NVIDIA GPU code class_Monitor_nD_trace: 16139, Generating acc routine seq Generating NVIDIA GPU code class_Monochromator_curved_trace: 16429, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 16774, Generating acc routine seq Generating NVIDIA GPU code class_PowderN_trace: 16818, Generating acc routine seq Generating NVIDIA GPU code class_Collimator_radial_trace: 17294, Generating acc routine seq Generating NVIDIA GPU code raytrace: 17446, Generating acc routine seq Generating NVIDIA GPU code raytrace_all: 17823, Generating implicit firstprivate(gpu_innerloop) Generating NVIDIA GPU code 17837, #pragma acc loop gang(numgangs), vector(vecsize) /* blockIdx.x threadIdx.x */ 17823, Local memory used for .inl_particle_18952,particleN,.inl_.inl_mcneutron_0_18967,.inl_.X2265_18969,.inl_.inl_.X2471_15_18968 17837, Generating implicit firstprivate(seed,_particle) finally: 18762, Generating update self(_Monok_var,_Slit_Sample_var,_instrument_var,_Diff_Mono_Lambda_var,_Diff_BananaTheta_var,_Diff_Sample_Lambda_var,_mono_cradle_var,_mono_out_var,_Alpha_One_var,_Diff_Mono_XY_var,_Sample_var,_Origin_var,_Source_var,_Diff_BananaPSD_var,_Alpha_Two_var,_collimador_radial_var) mcenabletrace: 5900, Generating update device(mcdotrace) /usr/bin/ld: /tmp/nvcqfvmlW8K5uwQ6.o: in function `cif2hkl': /u/data/pkwi/TESTS/2024-11-18/McStas_8GPU_openacc_5e6_Linux_5e6/templateDIFF/./templateDIFF.c:12339: warning: the use of `tmpnam' is dangerous, better use `mkstemp' DEBUG: CMD: nvc finished INFO: ===