INFO: No output directory specified (--dir) INFO: Using directory: "NCrystal_example_20241204_033202" INFO: Regenerating c-file: NCrystal_example.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./NCrystal_example.c NCrystal_example.instr Info: 'NCrystal_sample' is a contributed component. CFLAGS= -Wl,-rpath,CMD(ncrystal-config --show libdir) -Wl,CMD(ncrystal-config --show libpath) -ICMD(ncrystal-config --show includedir) -DFUNNEL ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: -> SPLIT N at component monochromator -> SPLIT N at component powder_sample ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component monochromator is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> SPLIT within buffer at component monochromator -> GPU kernel from component mono_out Component powder_sample is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> SPLIT within buffer at component powder_sample -> GPU kernel from component powder_pattern_detc ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./NCrystal_example.out --> launching cmd: ncrystal-config --show libdir --> launching cmd: ncrystal-config --show libpath --> launching cmd: ncrystal-config --show includedir DEBUG: CMD: nvc -o ./NCrystal_example.out ./NCrystal_example.c -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -Wl,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib/libNCrystal.so.3.8.2 -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include -DFUNNEL "./NCrystal_example.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 " "./NCrystal_example.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./NCrystal_example.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./NCrystal_example.c", line 6895: warning: missing return statement at end of non-void function "ncrystalsample_surfintersect" [implicit_return_from_non_void_function] } ^ "./NCrystal_example.c", line 7148: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./NCrystal_example.c", line 7136: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./NCrystal_example.c", line 7189: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./NCrystal_example.c", line 7250: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./NCrystal_example.c", line 7299: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 4; ^ "./NCrystal_example.c", line 7360: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 5; ^ "./NCrystal_example.c", line 7409: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 6; ^ "./NCrystal_example.c", line 7470: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 7; ^ "./NCrystal_example.c", line 8237: warning: variable "j" was declared but never referenced [declared_but_not_referenced] int i, j; ^ "./NCrystal_example.c", line 8684: warning: variable "_particle_save" was declared but never referenced [declared_but_not_referenced] _class_particle _particle_save; ^ "./NCrystal_example.c", line 9466: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./NCrystal_example.c", line 9467: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./NCrystal_example.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./NCrystal_example.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 init: 7832, Generating update device(_monochromator_var,_source_var,_powder_sample_var,_instrument_var,_mono_out_var,_mono_arm_var,_powder_pattern_detc_var,_origin_var) class_Progress_bar_trace: 7875, Generating acc routine seq Generating NVIDIA GPU code class_Source_div_trace: 7965, Generating acc routine seq Generating NVIDIA GPU code class_Cyl_monitor_trace: 8222, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 8593, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8597, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8593, Local memory used for .inl_.inl_mcneutron_0_9178,.inl_particle_9163,.inl_.X1825_9180,.inl_.inl_.X2018_15_9179 8597, Generating implicit private(_particle,seed) 8607, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8612, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8607, Local memory used for .inl_.inl_c_1920_9227,.inl_.inl_.inl_b_1894_1926_9232,.inl_.inl_.inl_.X1983_1893_1925_9231,.inl_.inl_b_1916_9226,.inl_.inl_c_1909_9216,.inl_.inl_.inl_b_1894_1915_9221,.inl_.inl_.inl_.X1983_1893_1914_9220,.inl_.inl_b_1905_9215,.inl_.inl_.X1967_1904_9210,.inl_.inl_c_1901_9209,.inl_c_9242,.inl_.inl_b_1900_9207,.inl_.inl_.X1983_1899_9206,.inl_b_9199,.inl_.X1966_9198,.inl_.X1967_9193,.inl_c_9201,.inl_.X1965_9189,.inl_a_9185,_particle_save,.inl_c_9253,.inl_.inl_c_1909_9268,.inl_.inl_.inl_b_1894_1915_9273,.inl_.inl_.inl_.X1983_1893_1914_9272,.inl_.inl_b_1905_9267,.inl_.inl_c_1901_9261,.inl_.inl_.inl_.X1983_1893_1925_9283,.inl_.inl_.X1983_1899_9258,.inl_.inl_b_1900_9259,.inl_.X1967_9245,.inl_.inl_b_1916_9278,.inl_c_9190,.inl_.inl_.inl_b_1894_1926_9284,.inl_.inl_.X1967_1904_9262,.inl_a_9237,.inl_.X1965_9241,.inl_.X1966_9250,.inl_b_9251,.inl_.inl_c_1920_9279 8612, Generating implicit private(_particle) 8679, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8682, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8682, Generating implicit private(_particle) 8719, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 8722, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 8719, Local memory used for _particle_save,.inl_c_9403,.inl_.inl_c_1909_9418,.inl_.inl_.inl_b_1894_1915_9423,.inl_.inl_.inl_.X1983_1893_1914_9422,.inl_.inl_b_1905_9417,.inl_.inl_c_1901_9411,.inl_.inl_.inl_.X1983_1893_1925_9433,.inl_.inl_.X1983_1899_9408,.inl_.inl_b_1900_9409,.inl_.X1967_9395,.inl_.inl_b_1916_9428,.inl_c_9392,.inl_.inl_.inl_b_1894_1926_9434,.inl_.inl_.X1967_1904_9412,.inl_a_9387,.inl_.X1965_9391,.inl_.X1966_9400,.inl_b_9401,.inl_.inl_c_1920_9429 8722, Generating implicit private(_particle) finally: 9004, Generating update self(_monochromator_var,_source_var,_powder_sample_var,_instrument_var,_mono_out_var,_mono_arm_var,_powder_pattern_detc_var,_origin_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===