JuliaGPU / oneAPI.jl

Julia support for the oneAPI programming toolkit.
https://juliagpu.org/oneapi/
Other
182 stars 22 forks source link

oneAPI 2024.1 : Fix valid warnings encountered post updating oneAPI to 2024.1 #422

Closed kballeda closed 6 months ago

kballeda commented 6 months ago

Tracker issue: Few MKL specific warnings are generated post updating to oneAPI 2024.1

Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done
[ Info: Running `conda list` in /home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda environment
# packages in environment at /home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    intel
_openmp_mutex             4.5                       2_gnu    intel
_sysroot_linux-64_curr_repodata_hack 3                   h69a702a_14    conda-forge
dpcpp-cpp-rt              2024.1.0              intel_963    intel
dpcpp_impl_linux-64       2024.1.0              intel_963    intel
dpcpp_linux-64            2024.1.0              intel_963    intel
icc_rt                    2024.1.0              intel_963    intel
intel-cmplr-lib-rt        2024.1.0              intel_963    intel
intel-cmplr-lic-rt        2024.1.0              intel_963    intel
intel-opencl-rt           2024.1.0              intel_963    intel
intel-openmp              2024.1.0              intel_963    intel
kernel-headers_linux-64   4.18.0               he073ed8_2    conda-forge
libgcc-ng                 13.2.0               h807b86a_5    intel
libgomp                   13.2.0               h807b86a_5    intel
libstdcxx-ng              13.2.0               h7e041cc_5    intel
mkl                       2024.1.0              intel_691    intel
mkl-devel                 2024.1.0              intel_691    intel
mkl-devel-dpcpp           2024.1.0              intel_691    intel
mkl-dpcpp                 2024.1.0              intel_691    intel
mkl-include               2024.1.0              intel_691    intel
onemkl-sycl-blas          2024.1.0              intel_691    intel
onemkl-sycl-datafitting   2024.1.0              intel_691    intel
onemkl-sycl-dft           2024.1.0              intel_691    intel
onemkl-sycl-lapack        2024.1.0              intel_691    intel
onemkl-sycl-rng           2024.1.0              intel_691    intel
onemkl-sycl-sparse        2024.1.0              intel_691    intel
onemkl-sycl-stats         2024.1.0              intel_691    intel
onemkl-sycl-vm            2024.1.0              intel_691    intel
sysroot_linux-64          2.28                 he073ed8_2    conda-forge
tbb                       2021.12.0             intel_495    intel
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is IntelLLVM 2024.1.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/bin/icpx - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done (0.8s)
-- Generating done (0.0s)
-- Build files have been written to: /tmp/jl_54LeAF
ninja: Entering directory `/tmp/jl_54LeAF'
[2/4] Building CXX object CMakeFiles/oneapi_support.dir/src/onemkl.cpp.o
/home/kali/Kali/JULIA/0411_julia_conda_2024_1/oneAPI.jl/deps/src/onemkl.cpp:4261:39: warning: 'trsv' is deprecated: Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead. [-Wdeprecated-declarations]
 4261 |    auto status = oneapi::mkl::sparse::trsv(device_queue->val, convert(uplo_val), convert(opA), convert(diag_val), (oneapi::mkl::sparse::matrix_handle_t) A, x, y, {});
      |                                       ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:231:1: note: 'trsv' has been explicitly marked deprecated here
  231 | ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV(float);
      | ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:221:7: note: expanded from macro 'ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV'
  221 |     [[deprecated("Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead.")]] \
      |       ^
/home/kali/Kali/JULIA/0411_julia_conda_2024_1/oneAPI.jl/deps/src/onemkl.cpp:4267:39: warning: 'trsv' is deprecated: Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead. [-Wdeprecated-declarations]
 4267 |    auto status = oneapi::mkl::sparse::trsv(device_queue->val, convert(uplo_val), convert(opA), convert(diag_val), (oneapi::mkl::sparse::matrix_handle_t) A, x, y, {});
      |                                       ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:232:1: note: 'trsv' has been explicitly marked deprecated here
  232 | ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV(double);
      | ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:221:7: note: expanded from macro 'ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV'
  221 |     [[deprecated("Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead.")]] \
      |       ^
/home/kali/Kali/JULIA/0411_julia_conda_2024_1/oneAPI.jl/deps/src/onemkl.cpp:4273:39: warning: 'trsv' is deprecated: Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead. [-Wdeprecated-declarations]
 4273 |    auto status = oneapi::mkl::sparse::trsv(device_queue->val, convert(uplo_val), convert(opA), convert(diag_val), (oneapi::mkl::sparse::matrix_handle_t) A, reinterpret_cast<std::complex<float>*>(x), reinterpret_cast<std::complex<float>*>(y), {});
      |                                       ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:233:1: note: 'trsv' has been explicitly marked deprecated here
  233 | ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV(std::complex<float>);
      | ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:221:7: note: expanded from macro 'ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV'
  221 |     [[deprecated("Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead.")]] \
      |       ^
/home/kali/Kali/JULIA/0411_julia_conda_2024_1/oneAPI.jl/deps/src/onemkl.cpp:4279:39: warning: 'trsv' is deprecated: Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead. [-Wdeprecated-declarations]
 4279 |    auto status = oneapi::mkl::sparse::trsv(device_queue->val, convert(uplo_val), convert(opA), convert(diag_val), (oneapi::mkl::sparse::matrix_handle_t) A, reinterpret_cast<std::complex<double>*>(x), reinterpret_cast<std::complex<double>*>(y), {});
      |                                       ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:234:1: note: 'trsv' has been explicitly marked deprecated here
  234 | ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV(std::complex<double>);
      | ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:221:7: note: expanded from macro 'ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV'
  221 |     [[deprecated("Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead.")]] \
      |       ^
4 warnings generated.
/home/kali/Kali/JULIA/0411_julia_conda_2024_1/oneAPI.jl/deps/src/onemkl.cpp:4261:39: warning: 'trsv' is deprecated: Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead. [-Wdeprecated-declarations]
 4261 |    auto status = oneapi::mkl::sparse::trsv(device_queue->val, convert(uplo_val), convert(opA), convert(diag_val), (oneapi::mkl::sparse::matrix_handle_t) A, x, y, {});
      |                                       ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:231:1: note: 'trsv' has been explicitly marked deprecated here
  231 | ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV(float);
      | ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:221:7: note: expanded from macro 'ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV'
  221 |     [[deprecated("Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead.")]] \
      |       ^
/home/kali/Kali/JULIA/0411_julia_conda_2024_1/oneAPI.jl/deps/src/onemkl.cpp:4267:39: warning: 'trsv' is deprecated: Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead. [-Wdeprecated-declarations]
 4267 |    auto status = oneapi::mkl::sparse::trsv(device_queue->val, convert(uplo_val), convert(opA), convert(diag_val), (oneapi::mkl::sparse::matrix_handle_t) A, x, y, {});
      |                                       ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:232:1: note: 'trsv' has been explicitly marked deprecated here
  232 | ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV(double);
      | ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:221:7: note: expanded from macro 'ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV'
  221 |     [[deprecated("Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead.")]] \
      |       ^
/home/kali/Kali/JULIA/0411_julia_conda_2024_1/oneAPI.jl/deps/src/onemkl.cpp:4273:39: warning: 'trsv' is deprecated: Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead. [-Wdeprecated-declarations]
 4273 |    auto status = oneapi::mkl::sparse::trsv(device_queue->val, convert(uplo_val), convert(opA), convert(diag_val), (oneapi::mkl::sparse::matrix_handle_t) A, reinterpret_cast<std::complex<float>*>(x), reinterpret_cast<std::complex<float>*>(y), {});
      |                                       ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:233:1: note: 'trsv' has been explicitly marked deprecated here
  233 | ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV(std::complex<float>);
      | ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:221:7: note: expanded from macro 'ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV'
  221 |     [[deprecated("Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead.")]] \
      |       ^
/home/kali/Kali/JULIA/0411_julia_conda_2024_1/oneAPI.jl/deps/src/onemkl.cpp:4279:39: warning: 'trsv' is deprecated: Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead. [-Wdeprecated-declarations]
 4279 |    auto status = oneapi::mkl::sparse::trsv(device_queue->val, convert(uplo_val), convert(opA), convert(diag_val), (oneapi::mkl::sparse::matrix_handle_t) A, reinterpret_cast<std::complex<double>*>(x), reinterpret_cast<std::complex<double>*>(y), {});
      |                                       ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:234:1: note: 'trsv' has been explicitly marked deprecated here
  234 | ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV(std::complex<double>);
      | ^
/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/include/oneapi/mkl/spblas/sparse_operations.hpp:221:7: note: expanded from macro 'ONEMKL_DECLARE_DEPRECATED_SPARSE_TRSV'
  221 |     [[deprecated("Use oneapi::mkl::sparse::trsv(queue, ... , diag_val, /* alpha */ 1.0, ...) instead.")]] \
      |       ^
4 warnings generated.
[3/4] Install the project...
-- Install configuration: ""
-- Installing: /home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/deps/lib/liboneapi_support.so
-- Set non-toolchain portion of runtime path of "/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/deps/lib/liboneapi_support.so" to "/home/kali/.julia/scratchspaces/8f75cd03-7ff8-4ecb-9b8f-daf728133b1b/conda/lib"
maleadt commented 6 months ago

You can use triple backticks to denote raw output blocks.

amontoison commented 6 months ago

@kballeda I updated the C interface in #403 for oneAPI 2024.1. It should fix the issue, I don't have any warning during the compilation. sparse_trsv just has an additional argument alpha with the new release.

kballeda commented 6 months ago

@kballeda I updated the C interface in #403 for oneAPI 2024.1. It should fix the issue, I don't have any warning during the compilation. sparse_trsv just has an additional argument alpha with the new release.

Great, Thank you!