INFO: No output directory specified (--dir) INFO: Using directory: "vinput2mcpl_20241118_034611" 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 -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 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 " "./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 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_.inl_mcneutron_0_8542,.inl_particle_8527,.inl_.X1839_8544,.inl_.inl_.X2037_15_8543 9928, Generating implicit private(_particle,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_8565,.inl_.inl_c_1909_8580,.inl_.inl_.inl_b_1894_1915_8585,.inl_.inl_.inl_.X2002_1893_1914_8584,.inl_.inl_b_1905_8579,.inl_.inl_c_1901_8573,.inl_.inl_.inl_.X2002_1893_1925_8595,.inl_.inl_.X2002_1899_8570,.inl_.inl_b_1900_8571,.inl_.X1986_8557,.inl_.inl_b_1916_8590,.inl_c_8554,.inl_.inl_.inl_b_1894_1926_8596,.inl_.inl_.X1986_1904_8574,.inl_a_8549,.inl_.X1984_8553,.inl_.X1985_8562,.inl_b_8563,.inl_.inl_c_1920_8591 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_8667,.inl_.inl_c_1909_8682,.inl_.inl_.inl_b_1894_1915_8687,.inl_.inl_.inl_.X2002_1893_1914_8686,.inl_.inl_b_1905_8681,.inl_.inl_c_1901_8675,.inl_.inl_.inl_.X2002_1893_1925_8697,.inl_.inl_.X2002_1899_8672,.inl_.inl_b_1900_8673,.inl_.X1986_8659,.inl_.inl_b_1916_8692,.inl_c_8656,.inl_.inl_.inl_b_1894_1926_8698,.inl_.inl_.X1986_1904_8676,.inl_a_8651,.inl_.X1984_8655,.inl_.X1985_8664,.inl_b_8665,.inl_.inl_c_1920_8693 9988, Generating implicit private(_particle) 9616, Loop carried scalar dependence for .inl_.inl_.inl_str1_16_3720_8708 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_17_3721_8709 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_42_3760_8747 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_18_3724_8711 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_16_3720_8708 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_19_3725_8712 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_17_3721_8709 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_20_3727_8714 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_18_3724_8711 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_21_3728_8715 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_19_3725_8712 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_22_3730_8717 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_20_3727_8714 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_23_3731_8718 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_21_3728_8715 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_24_3733_8720 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_22_3730_8717 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_25_3734_8721 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_23_3731_8718 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_26_3736_8723 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_24_3733_8720 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_27_3737_8724 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_25_3734_8721 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_28_3739_8726 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_26_3736_8723 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_29_3740_8727 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_27_3737_8724 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_30_3742_8729 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_28_3739_8726 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_31_3743_8730 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_29_3740_8727 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_32_3745_8732 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_30_3742_8729 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_33_3746_8733 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_31_3743_8730 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_34_3748_8735 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_32_3745_8732 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_35_3749_8736 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_33_3746_8733 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_36_3751_8738 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_34_3748_8735 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_37_3752_8739 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_35_3749_8736 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_38_3754_8741 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_36_3751_8738 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_39_3755_8742 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_37_3752_8739 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_40_3757_8744 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_38_3754_8741 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_41_3758_8745 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_39_3755_8742 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str1_42_3760_8747 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str1_40_3757_8744 at line 9616 Loop carried scalar dependence for .inl_.inl_.inl_str2_43_3761_8748 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_43_3761_8748 at line 9616 Scalar last value needed after loop for .inl_.inl_.inl_str2_41_3758_8745 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: ===