INFO: No output directory specified (--dir) INFO: Using directory: "Test_Monochromator_bent_20241204_050424" INFO: Regenerating c-file: Test_Monochromator_bent.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./Test_Monochromator_bent.c Test_Monochromator_bent.instr Info: 'Monochromator_bent' is a contributed component. CFLAGS= -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component Monochromator is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component Monochromator -> GPU kernel from component arm_after_monochromator ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./Test_Monochromator_bent.out DEBUG: CMD: nvc -o ./Test_Monochromator_bent.out ./Test_Monochromator_bent.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL "./Test_Monochromator_bent.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./Test_Monochromator_bent.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./Test_Monochromator_bent.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./Test_Monochromator_bent.c", line 8505: warning: missing return statement at end of non-void function "sign" [implicit_return_from_non_void_function] } ^ "./Test_Monochromator_bent.c", line 8623: warning: missing return statement at end of non-void function "stringToEnum" [implicit_return_from_non_void_function] } ^ "./Test_Monochromator_bent.c", line 9077: warning: variable "entry_time" is used before its value is set [used_before_set] neutron->path_length[lamella] = neutron->exit_time[lamella] - entry_time; ^ "./Test_Monochromator_bent.c", line 9054: warning: variable "exit_time" was declared but never referenced [declared_but_not_referenced] double entry_time, exit_time; ^ "./Test_Monochromator_bent.c", line 9118: warning: variable "t0" was declared but never referenced [declared_but_not_referenced] double t0, inner_t1, outer_t1; ^ "./Test_Monochromator_bent.c", line 9118: warning: variable "inner_t1" was declared but never referenced [declared_but_not_referenced] double t0, inner_t1, outer_t1; ^ "./Test_Monochromator_bent.c", line 9118: warning: variable "outer_t1" was declared but never referenced [declared_but_not_referenced] double t0, inner_t1, outer_t1; ^ "./Test_Monochromator_bent.c", line 9119: warning: variable "kinematic_reflectivity" was declared but never referenced [declared_but_not_referenced] double kinematic_reflectivity; ^ "./Test_Monochromator_bent.c", line 9120: warning: variable "r" was declared but never referenced [declared_but_not_referenced] double r[3] = {neutron->r[0], neutron->r[1], neutron->r[2]}; ^ "./Test_Monochromator_bent.c", line 9121: warning: variable "intersected" was declared but never referenced [declared_but_not_referenced] int intersected; ^ "./Test_Monochromator_bent.c", line 9122: warning: variable "transposed_x" was declared but never referenced [declared_but_not_referenced] double transposed_x; ^ "./Test_Monochromator_bent.c", line 9481: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./Test_Monochromator_bent.c", line 9437: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./Test_Monochromator_bent.c", line 9522: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./Test_Monochromator_bent.c", line 9580: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./Test_Monochromator_bent.c", line 9645: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./Test_Monochromator_bent.c", line 9694: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./Test_Monochromator_bent.c", line 9762: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./Test_Monochromator_bent.c", line 9811: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./Test_Monochromator_bent.c", line 9860: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 8; ^ "./Test_Monochromator_bent.c", line 10988: warning: variable "init_v_size" was set but never used [set_but_not_used] double init_v_size; ^ "./Test_Monochromator_bent.c", line 12521: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./Test_Monochromator_bent.c", line 12522: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./Test_Monochromator_bent.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./Test_Monochromator_bent.c", line 2898: warning: function "strcpy_valid" was declared but never referenced [declared_but_not_referenced] static char *strcpy_valid(char *valid, char *original) ^ mcgenstate: 88, Generating acc routine seq Generating NVIDIA GPU code particle_getvar: 102, Generating acc routine seq Generating NVIDIA GPU code particle_getvar_void: 134, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void: 158, Generating acc routine seq Generating NVIDIA GPU code particle_setvar_void_array: 180, Generating acc routine seq Generating NVIDIA GPU code particle_restore: 191, Generating acc routine seq Generating NVIDIA GPU code particle_getuservar_byid: 200, Generating acc routine seq Generating NVIDIA GPU code particle_uservar_init: 210, Generating acc routine seq Generating NVIDIA GPU code noprintf: 1542, Generating acc routine seq Generating NVIDIA GPU code str_comp: 1546, Generating acc routine seq Generating NVIDIA GPU code str_len: 1555, Generating acc routine seq Generating NVIDIA GPU code mcget_ncount: 4107, Generating acc routine seq Generating NVIDIA GPU code coords_set: 4538, Generating acc routine seq Generating NVIDIA GPU code coords_get: 4549, Generating acc routine seq Generating NVIDIA GPU code coords_add: 4558, Generating acc routine seq Generating NVIDIA GPU code coords_sub: 4570, Generating acc routine seq Generating NVIDIA GPU code coords_neg: 4582, Generating acc routine seq Generating NVIDIA GPU code coords_scale: 4592, Generating acc routine seq Generating NVIDIA GPU code coords_sp: 4602, Generating acc routine seq Generating NVIDIA GPU code coords_xp: 4610, Generating acc routine seq Generating NVIDIA GPU code coords_len: 4620, Generating acc routine seq Generating NVIDIA GPU code coords_print: 4642, Generating acc routine seq Generating NVIDIA GPU code coords_norm: 4649, Generating acc routine seq Generating NVIDIA GPU code rot_set_rotation: 4695, Generating acc routine seq Generating NVIDIA GPU code rot_test_identity: 4730, Generating acc routine seq Generating NVIDIA GPU code rot_mul: 4741, Generating acc routine seq Generating NVIDIA GPU code rot_copy: 4758, Generating acc routine seq Generating NVIDIA GPU code rot_transpose: 4769, Generating acc routine seq Generating NVIDIA GPU code rot_apply: 4785, Generating acc routine seq Generating NVIDIA GPU code vec_prod_func: 4814, Generating acc routine seq Generating NVIDIA GPU code scalar_prod: 4825, Generating acc routine seq Generating NVIDIA GPU code norm_func: 4829, Generating acc routine seq Generating NVIDIA GPU code sort_absorb_last: 4864, Generating present(particles[:buffer_len],pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4871, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4880, #pragma acc loop seq 4864, Generating implicit copy(lens[:]) [if not already present] 4871, Generating implicit firstprivate(ll,l) 4882, Accelerator restriction: induction variable live-out from loop: i 4883, Accelerator restriction: induction variable live-out from loop: i 4884, Accelerator restriction: induction variable live-out from loop: i 4885, Accelerator restriction: induction variable live-out from loop: i 4887, Accelerator restriction: induction variable live-out from loop: j 4888, Accelerator restriction: induction variable live-out from loop: j 4889, Accelerator restriction: induction variable live-out from loop: j 4890, Accelerator restriction: induction variable live-out from loop: j 4912, Generating present(pbuffer[:buffer_len]) Generating implicit firstprivate(tidx) Generating NVIDIA GPU code 4916, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4919, #pragma acc loop seq 4912, Generating implicit copyin(lens[:]) [if not already present] Generating implicit copy(particles[:]) [if not already present] Generating implicit copyin(los[:]) [if not already present] 4919, Generating implicit firstprivate(l) 4936, Generating present(particles[:buffer_len]) Generating implicit firstprivate(accumlen,tidx,mult) Generating NVIDIA GPU code 4940, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 4947, #pragma acc loop seq 4936, Local memory used for targetbuffer,sourcebuffer mccoordschange: 5006, Generating acc routine seq Generating NVIDIA GPU code mccoordschange_polarisation: 5037, Generating acc routine seq Generating NVIDIA GPU code normal_vec: 5054, Generating acc routine seq Generating NVIDIA GPU code solve_2nd_order: 5153, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_circle: 5237, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_angular: 5303, Generating acc routine seq Generating NVIDIA GPU code _randvec_target_rect_real: 5380, Generating acc routine seq Generating NVIDIA GPU code kiss_srandom: 5652, Generating acc routine seq Generating NVIDIA GPU code kiss_random: 5662, Generating acc routine seq Generating NVIDIA GPU code _hash: 5688, Generating acc routine seq Generating NVIDIA GPU code _randnorm2: 5729, Generating acc routine seq Generating NVIDIA GPU code _randtriangle: 5740, Generating acc routine seq Generating NVIDIA GPU code _rand01: 5745, Generating acc routine seq Generating NVIDIA GPU code _randpm1: 5753, Generating acc routine seq Generating NVIDIA GPU code _rand0max: 5761, Generating acc routine seq Generating NVIDIA GPU code _randminmax: 5768, Generating acc routine seq Generating NVIDIA GPU code mcsetstate: 6427, Generating acc routine seq Generating NVIDIA GPU code mcgetstate: 6463, Generating acc routine seq Generating NVIDIA GPU code inside_rectangle: 6523, Generating acc routine seq Generating NVIDIA GPU code box_intersect: 6540, Generating acc routine seq Generating NVIDIA GPU code cylinder_intersect: 6655, Generating acc routine seq Generating NVIDIA GPU code sphere_intersect: 6710, Generating acc routine seq Generating NVIDIA GPU code Table_Index: 7716, Generating acc routine seq Generating NVIDIA GPU code Table_Value: 7784, Generating acc routine seq Generating NVIDIA GPU code Table_Value2d: 7863, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d: 8331, Generating acc routine seq Generating NVIDIA GPU code Table_Interp1d_nearest: 8347, Generating acc routine seq Generating NVIDIA GPU code Table_Interp2d: 8365, Generating acc routine seq Generating NVIDIA GPU code SG_Maxwell: 8412, Generating acc routine seq Generating NVIDIA GPU code init: 10590, Generating update device(_Slit_var,_PSD_exit_monitor_var,_arm_after_monochromator_var,_monochromator_arm_var,_monitor_arm_var,_Source_var,_instrument_var,_Monochromator_var,_entry_monitor_var) class_Source_gen_trace: 10633, Generating acc routine seq Generating NVIDIA GPU code class_Slit_trace: 10842, Generating acc routine seq Generating NVIDIA GPU code class_PSD_monitor_trace: 10886, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 11404, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 11408, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 11404, Local memory used for .inl_.inl_mcneutron_0_11459,.inl_particle_11444,.inl_.X1991_11461,.inl_.inl_.X2191_15_11460 11408, Generating implicit firstprivate(seed,_particle) 11418, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 11423, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 11418, Local memory used for .inl_.inl_c_1920_11558,.inl_.inl_.inl_b_1894_1926_11563,.inl_.inl_.inl_.X2156_1893_1925_11562,.inl_.inl_b_1916_11557,.inl_.inl_c_1909_11547,.inl_.inl_.inl_b_1894_1915_11552,.inl_.inl_.inl_.X2156_1893_1914_11551,.inl_.inl_b_1905_11546,.inl_.inl_.X2140_1904_11541,.inl_.inl_c_1901_11540,.inl_c_11571,.inl_.inl_b_1900_11538,.inl_.inl_.X2156_1899_11537,.inl_b_11530,.inl_.X2139_11529,.inl_.X2140_11524,.inl_c_11532,.inl_.X2138_11520,.inl_a_11516,.inl_.inl_c_1920_11508,.inl_.inl_.inl_b_1894_1926_11513,.inl_.inl_.inl_.X2156_1893_1925_11512,.inl_.inl_b_1916_11507,.inl_.inl_c_1909_11497,.inl_.inl_.inl_b_1894_1915_11502,.inl_.inl_.inl_.X2156_1893_1914_11501,.inl_.inl_b_1905_11496,.inl_.inl_.X2140_1904_11491,.inl_.inl_c_1901_11490,.inl_c_11521,.inl_.inl_b_1900_11488,.inl_.inl_.X2156_1899_11487,.inl_b_11480,.inl_.X2139_11479,.inl_.X2140_11474,.inl_c_11482,.inl_.X2138_11470,.inl_a_11466,_particle_save,.inl_c_11582,.inl_.inl_c_1909_11597,.inl_.inl_.inl_b_1894_1915_11602,.inl_.inl_.inl_.X2156_1893_1914_11601,.inl_.inl_b_1905_11596,.inl_.inl_c_1901_11590,.inl_.inl_.inl_.X2156_1893_1925_11612,.inl_.inl_.X2156_1899_11587,.inl_.inl_b_1900_11588,.inl_.X2140_11574,.inl_.inl_b_1916_11607,.inl_c_11471,.inl_.inl_.inl_b_1894_1926_11613,.inl_.inl_.X2140_1904_11591,.inl_a_11566,.inl_.X2138_11570,.inl_.X2139_11579,.inl_b_11580,.inl_.inl_c_1920_11608 11423, Generating implicit private(_particle) 11500, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 11503, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 11500, Local memory used for _particle_save,.inl_c_11682,.inl_.inl_c_1909_11697,.inl_.inl_.inl_b_1894_1915_11702,.inl_.inl_.inl_.X2156_1893_1914_11701,.inl_.inl_b_1905_11696,.inl_.inl_c_1901_11690,.inl_.inl_.inl_.X2156_1893_1925_11712,.inl_.inl_.X2156_1899_11687,.inl_.inl_b_1900_11688,.inl_.X2140_11674,.inl_.inl_b_1916_11707,.inl_c_11671,.inl_.inl_.inl_b_1894_1926_11713,.inl_.inl_.X2140_1904_11691,.inl_a_11666,.inl_.X2138_11670,.inl_.X2139_11679,.inl_b_11680,.inl_.inl_c_1920_11708 11503, Generating implicit private(_particle) finally: 11859, Generating update self(_Slit_var,_PSD_exit_monitor_var,_arm_after_monochromator_var,_monochromator_arm_var,_monitor_arm_var,_Source_var,_instrument_var,_Monochromator_var,_entry_monitor_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===