INFO: No output directory specified (--dir) INFO: Using directory: "vinput2mcpl_20241118_090556" INFO: Regenerating c-file: vinput2mcpl.c DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas -t -o ./vinput2mcpl.c vinput2mcpl.instr Warning: 'Virtual_input' is an obsolete component (not maintained). CFLAGS= -DFUNNEL -Wl,-rpath,CMD(mcpl-config --show libdir) -LCMD(mcpl-config --show libdir) -lmcpl -ICMD(mcpl-config --show includedir) ----------------------------------------------------------- Generating single GPU kernel or single CPU section layout: ----------------------------------------------------------- Generating GPU/CPU -DFUNNEL layout: Component virtual_output is NOACC, CPUONLY=1 -> FUNNEL mode enabled, SPLIT within buffer. -> CPU section from component virtual_output -> GPU kernel from component mcpl_output ----------------------------------------------------------- DEBUG: CMD: /u/data/pkwi/McStas/mcstas/3.x-dev/bin/mcstas finished INFO: Recompiling: ./vinput2mcpl.out --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show libdir --> launching cmd: mcpl-config --show includedir DEBUG: CMD: nvc -o ./vinput2mcpl.out ./vinput2mcpl.c -DUSE_MPI -lmpi -Wl,-rpath,/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/lib -L,/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/lib -I/opt/nvidia/hpc_sdk/Linux_x86_64/24.7/comm_libs/12.5/openmpi4/openmpi-4.1.5/include -fast -Minfo=accel -acc=gpu -gpu=managed -DOPENACC -DFUNNEL -Wl,-rpath,/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -L/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/lib -lmcpl -I/u/data/pkwi/McStas/mcstas/3.x-dev/miniconda3/include "./vinput2mcpl.c", line 3700: warning: missing return statement at end of non-void function "siminfo_init" [implicit_return_from_non_void_function] } /* siminfo_init */ ^ Remark: individual warnings can be suppressed with "--diag_suppress " "./vinput2mcpl.c", line 4486: warning: variable "num" was declared but never referenced [declared_but_not_referenced] int num = 3; ^ "./vinput2mcpl.c", line 4941: warning: variable "randstate" was declared but never referenced [declared_but_not_referenced] unsigned long randstate[7]; ^ "./vinput2mcpl.c", line 4860: warning: variable "newlen" was declared but never referenced [declared_but_not_referenced] long newlen = 0; ^ "./vinput2mcpl.c", line 8382: warning: variable "length" was declared but never referenced [declared_but_not_referenced] long length=0; ^ "./vinput2mcpl.c", line 8619: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./vinput2mcpl.c", line 8607: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./vinput2mcpl.c", line 8660: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./vinput2mcpl.c", line 8718: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./vinput2mcpl.c", line 9053: warning: argument of type "unsigned char *" is incompatible with parameter of type "const char *" [incompatible_param] mcpl_hdr_add_data(outputfile, "mccode_instr_file", size, buffer); ^ "./vinput2mcpl.c", line 9044: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int size,status; ^ "./vinput2mcpl.c", line 9227: warning: incompatible redefinition of macro "exit" (declared at line 602) [bad_macro_redef] #define exit(...) noprintf() ^ "./vinput2mcpl.c", line 10955: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./vinput2mcpl.c", line 10956: warning: variable "ct" was set but never used [set_but_not_used] clock_t ct; ^ "./vinput2mcpl.c", line 1495: warning: variable "mcstartdate" was set but never used [set_but_not_used] static long mcstartdate = 0; /* start simulation time */ ^ "./vinput2mcpl.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 init: 9197, Generating update device(_mcpl_output_var,_virtual_output_var,_origin_var,_instrument_var) class_Progress_bar_trace: 9240, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_output_trace: 9562, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 9924, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9928, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9924, Local memory used for .inl_particle_8699,.inl_.inl_mcneutron_0_8714,.inl_.X1963_8716,.inl_.inl_.X2181_15_8715 9928, Generating implicit firstprivate(mpi_node_rank,_particle,ncount,seed) 9938, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9943, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9938, Local memory used for _particle_save,.inl_c_8737,.inl_.inl_c_1963_8752,.inl_.inl_.inl_b_1948_1969_8757,.inl_.inl_.inl_.X2146_1947_1968_8756,.inl_.inl_b_1959_8751,.inl_.inl_c_1955_8745,.inl_.inl_.inl_.X2146_1947_1979_8767,.inl_.inl_.X2146_1953_8742,.inl_.inl_b_1954_8743,.inl_.X2130_8729,.inl_.inl_b_1970_8762,.inl_c_8726,.inl_.inl_.inl_b_1948_1980_8768,.inl_.inl_.X2130_1958_8746,.inl_a_8721,.inl_.X2128_8725,.inl_.X2129_8734,.inl_b_8735,.inl_.inl_c_1974_8763 9943, Generating implicit private(_particle) 9985, Generating present(particles[:livebatchsize]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9988, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9985, Local memory used for _particle_save,.inl_c_8839,.inl_.inl_c_1963_8854,.inl_.inl_.inl_b_1948_1969_8859,.inl_.inl_.inl_.X2146_1947_1968_8858,.inl_.inl_b_1959_8853,.inl_.inl_c_1955_8847,.inl_.inl_.inl_.X2146_1947_1979_8869,.inl_.inl_.X2146_1953_8844,.inl_.inl_b_1954_8845,.inl_.X2130_8831,.inl_.inl_b_1970_8864,.inl_c_8828,.inl_.inl_.inl_b_1948_1980_8870,.inl_.inl_.X2130_1958_8848,.inl_a_8823,.inl_.X2128_8827,.inl_.X2129_8836,.inl_b_8837,.inl_.inl_c_1974_8865 9988, Generating implicit private(_particle) 9616, Loop carried scalar dependence for .inl_.inl_.inl_str1_16_3774_8880 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_17_3775_8881 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_42_3814_8919 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_18_3778_8883 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_16_3774_8880 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_19_3779_8884 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_17_3775_8881 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_20_3781_8886 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_18_3778_8883 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_21_3782_8887 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_19_3779_8884 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_22_3784_8889 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_20_3781_8886 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_23_3785_8890 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_21_3782_8887 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_24_3787_8892 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_22_3784_8889 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_25_3788_8893 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_23_3785_8890 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_26_3790_8895 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_24_3787_8892 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_27_3791_8896 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_25_3788_8893 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_28_3793_8898 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_26_3790_8895 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_29_3794_8899 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_27_3791_8896 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_30_3796_8901 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_28_3793_8898 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_31_3797_8902 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_29_3794_8899 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_32_3799_8904 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_30_3796_8901 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_33_3800_8905 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_31_3797_8902 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_34_3802_8907 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_32_3799_8904 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_35_3803_8908 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_33_3800_8905 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_36_3805_8910 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_34_3802_8907 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_37_3806_8911 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_35_3803_8908 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_38_3808_8913 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_36_3805_8910 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_39_3809_8914 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_37_3806_8911 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_40_3811_8916 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_38_3808_8913 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_41_3812_8917 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_39_3809_8914 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_42_3814_8919 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_40_3811_8916 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_43_3815_8920 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_43_3815_8920 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_41_3812_8917 at line 9616 finally: 10505, Generating update self(_mcpl_output_var,_origin_var,_virtual_output_var,_instrument_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===