INFO: No output directory specified (--dir) INFO: Using directory: "vinput2mcpl_20240919_034522" 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 8645: warning: variable "tc2" was set but never used [set_but_not_used] Coords tc1, tc2; ^ "./vinput2mcpl.c", line 8633: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 1; ^ "./vinput2mcpl.c", line 8686: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 2; ^ "./vinput2mcpl.c", line 8744: warning: variable "current_setpos_index" was declared but never referenced [declared_but_not_referenced] int current_setpos_index = 3; ^ "./vinput2mcpl.c", line 9079: 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 9070: warning: variable "status" was declared but never referenced [declared_but_not_referenced] int size,status; ^ "./vinput2mcpl.c", line 10969: warning: variable "t" was declared but never referenced [declared_but_not_referenced] time_t t; ^ "./vinput2mcpl.c", line 10970: 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[:],pbuffer[:]) 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[:]) 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[:]) 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: 9223, Generating update device(_mcpl_output_var,_virtual_output_var,_origin_var,_instrument_var) class_Progress_bar_trace: 9268, Generating acc routine seq Generating NVIDIA GPU code class_MCPL_output_trace: 9590, Generating acc routine seq Generating NVIDIA GPU code raytrace_all_funnel: 9945, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9949, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9945, Local memory used for .inl_.inl_mcneutron_0_8551,.inl_particle_8536,.inl_.X1839_8553,.inl_.inl_.X2039_15_8552 9949, Generating implicit private(_particle,seed) 9959, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 9964, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9959, Local memory used for _particle_save,.inl_c_8574,.inl_.inl_c_1909_8589,.inl_.inl_.inl_b_1894_1915_8594,.inl_.inl_.inl_.X2004_1893_1914_8593,.inl_.inl_b_1905_8588,.inl_.inl_c_1901_8582,.inl_.inl_.inl_.X2004_1893_1925_8604,.inl_.inl_.X2004_1899_8579,.inl_.inl_b_1900_8580,.inl_.X1988_8566,.inl_.inl_b_1916_8599,.inl_c_8563,.inl_.inl_.inl_b_1894_1926_8605,.inl_.inl_.X1988_1904_8583,.inl_a_8558,.inl_.X1986_8562,.inl_.X1987_8571,.inl_b_8572,.inl_.inl_c_1920_8600 9964, Generating implicit private(_particle) 9999, Generating present(particles[:]) Generating implicit firstprivate(livebatchsize) Generating NVIDIA GPU code 10002, #pragma acc loop gang, vector(128) /* blockIdx.x threadIdx.x */ 9999, Local memory used for _particle_save,.inl_c_8676,.inl_.inl_c_1909_8691,.inl_.inl_.inl_b_1894_1915_8696,.inl_.inl_.inl_.X2004_1893_1914_8695,.inl_.inl_b_1905_8690,.inl_.inl_c_1901_8684,.inl_.inl_.inl_.X2004_1893_1925_8706,.inl_.inl_.X2004_1899_8681,.inl_.inl_b_1900_8682,.inl_.X1988_8668,.inl_.inl_b_1916_8701,.inl_c_8665,.inl_.inl_.inl_b_1894_1926_8707,.inl_.inl_.X1988_1904_8685,.inl_a_8660,.inl_.X1986_8664,.inl_.X1987_8673,.inl_b_8674,.inl_.inl_c_1920_8702 10002, Generating implicit private(_particle) 9644, Loop carried scalar dependence for .inl_.inl_.inl_str1_16_3720_8717 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_17_3721_8718 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_42_3760_8756 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_18_3724_8720 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_16_3720_8717 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_19_3725_8721 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_17_3721_8718 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_20_3727_8723 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_18_3724_8720 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_21_3728_8724 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_19_3725_8721 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_22_3730_8726 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_20_3727_8723 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_23_3731_8727 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_21_3728_8724 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_24_3733_8729 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_22_3730_8726 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_25_3734_8730 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_23_3731_8727 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_26_3736_8732 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_24_3733_8729 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_27_3737_8733 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_25_3734_8730 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_28_3739_8735 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_26_3736_8732 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_29_3740_8736 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_27_3737_8733 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_30_3742_8738 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_28_3739_8735 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_31_3743_8739 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_29_3740_8736 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_32_3745_8741 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_30_3742_8738 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_33_3746_8742 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_31_3743_8739 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_34_3748_8744 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_32_3745_8741 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_35_3749_8745 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_33_3746_8742 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_36_3751_8747 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_34_3748_8744 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_37_3752_8748 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_35_3749_8745 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_38_3754_8750 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_36_3751_8747 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_39_3755_8751 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_37_3752_8748 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_40_3757_8753 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_38_3754_8750 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_41_3758_8754 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_39_3755_8751 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str1_42_3760_8756 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str1_40_3757_8753 at line 9644 Loop carried scalar dependence for .inl_.inl_.inl_str2_43_3761_8757 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_43_3761_8757 at line 9644 Scalar last value needed after loop for .inl_.inl_.inl_str2_41_3758_8754 at line 9644 finally: 10519, Generating update self(_mcpl_output_var,_origin_var,_virtual_output_var,_instrument_var) mcenabletrace: 5887, Generating update device(mcdotrace) DEBUG: CMD: nvc finished INFO: ===