[rocSparse][AdaptiveCPP] Build issues with Sparse domain

Aperta
#683 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
cmake, cpp

Direzione di ricerca

The errors point at src/sparse_blas/sycl_helper.hpp (lines 58 and 74), src/sparse_blas/backends/common_launch_task.hpp (lines 70 and 88), and src/sparse_blas/backends/rocsparse/rocsparse_scope_handle.hpp (lines 56, 63, 81), all reached from rocsparse_handles.cpp. Start by re-running the reported cmake configure with acpp and building that single object. Done means the rocsparse backend compiles against the installed AdaptiveCpp, which requires matching the SYCL and HIP APIs that AdaptiveCpp exposes.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug help wanted Sparse BLAS domain

Steps to reproduce:

cmake .. \
      -DCMAKE_C_COMPILER=acpp \
      -DCMAKE_CXX_COMPILER=acpp \
      -DONEMATH_SYCL_IMPLEMENTATION=hipsycl \
      -DAdaptiveCpp_DIR=${ACPP_HOME}/acpp/lib/cmake/AdaptiveCpp \
      -DENABLE_MKLGPU_BACKEND=False \
      -DENABLE_MKLCPU_BACKEND=False \
      -DENABLE_ROCBLAS_BACKEND=True \
      -DENABLE_ROCSOLVER_BACKEND=True \
      -DENABLE_ROCRAND_BACKEND=True \
      -DENABLE_ROCSPARSE_BACKEND=True \
      -DHIPSYCL_TARGETS=hip:gfx90a \
      -DBUILD_FUNCTIONAL_TESTS=False \
      -DBUILD_EXAMPLES=False \
      -DHIP_TARGETS=gfx90a \
      -DCMAKE_INSTALL_PREFIX=${ACPP_HOME}/onemath

Compiler Version: (AdaptiveCPP:v25.02.0)

acpp --version
AMD clang version 19.0.0git (https://github.com/RadeonOpenCompute/llvm-project roc-6.4.0 25133 c7fe45cf4b819c5991fe208aaa96edf142730f1d)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-6.4.0/lib/llvm/bin
Configuration file: /opt/rocm-6.4.0/lib/llvm/bin/clang++.cfg

Error:

[  7%] Building CXX object bin/sparse_blas/backends/rocsparse/CMakeFiles/onemath_sparse_blas_rocsparse_obj.dir/rocsparse_handles.cpp.o
cd /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/build-acpp-rocm6.4.0/bin/sparse_blas/backends/rocsparse && /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/acpp_install-6.4.0_05282025/acpp/bin/acpp -DUSE_PROF_API=1 -D__HIP_PLATFORM_AMD__=1 -I/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/include -I/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/build-acpp-rocm6.4.0/bin -I/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/include -I/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src -isystem /opt/rocm-6.4.0/include -O3 -DNDEBUG -std=gnu++17 -fPIC -Wall -Wextra -Wshadow -Wconversion -Wpedantic -MD -MT bin/sparse_blas/backends/rocsparse/CMakeFiles/onemath_sparse_blas_rocsparse_obj.dir/rocsparse_handles.cpp.o -MF CMakeFiles/onemath_sparse_blas_rocsparse_obj.dir/rocsparse_handles.cpp.o.d -o CMakeFiles/onemath_sparse_blas_rocsparse_obj.dir/rocsparse_handles.cpp.o -c /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_handles.cpp
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_handles.cpp:20:
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/include/oneapi/math/sparse_blas/detail/rocsparse/onemath_sparse_blas_rocsparse.hpp:25:
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/include/oneapi/math/sparse_blas/types.hpp:23:
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/include/oneapi/math/types.hpp:30:
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/include/oneapi/math/bfloat16.hpp:67:36: warning: implicit conversion loses integer precision: 'int' to 'std::uint16_t' (aka 'unsigned short') [-Wimplicit-int-conversion]
   67 |     bfloat16(int raw_, bool) : raw(raw_) {}
      |                                   ~^~~~
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/include/oneapi/math/bfloat16.hpp:222:44: warning: implicit conversion changes signedness: 'int' to 'std::uint32_t' (aka 'unsigned int') [-Wsign-conversion]
  222 |     return bfloat16_impl::raw_to_float(raw << 16);
      |            ~~~~~~~~~~~~~               ~~~~^~~~~
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_handles.cpp:22:
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_error.hpp:25:
In file included from /opt/rocm-6.4.0/include/hip/hip_runtime.h:70:
/opt/rocm-6.4.0/include/hip/hip_runtime_api.h:1172:16: error: redefinition of 'dim3'
 1172 | typedef struct dim3 {
      |                ^
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/acpp_install-6.4.0_05282025/acpp/bin/../include/AdaptiveCpp/hipSYCL/pcuda/detail/dim3.hpp:16:8: note: previous definition is here
   16 | struct dim3 {
      |        ^
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_handles.cpp:23:
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_helper.hpp:31:
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/sycl_helper.hpp:58:13: error: no member named 'host_task' in 'hipsycl::sycl::handler'
   58 |         cgh.host_task([=]() { delete ptr; });
      |         ~~~ ^
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/sycl_helper.hpp:74:13: error: no member named 'host_task' in 'hipsycl::sycl::handler'
   74 |         cgh.host_task([=]() {});
      |         ~~~ ^
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_handles.cpp:25:
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_scope_handle.hpp:56:5: error: unknown type name 'HIPcontext'
   56 |     HIPcontext original_;
      |     ^
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_scope_handle.hpp:63:52: error: use of undeclared identifier 'pi_context'
   63 |     static thread_local rocsparse_handle_container<pi_context> handle_helper;
      |                                                    ^
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_scope_handle.hpp:81:52: error: no member named 'ext_oneapi_hip' in 'hipsycl::rt::backend_id'
   81 |     auto hipPtr = ih.get_native_mem<sycl::backend::ext_oneapi_hip>(acc);
      |                                     ~~~~~~~~~~~~~~~^
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_handles.cpp:26:
In file included from /lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/rocsparse/rocsparse_task.hpp:24:
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/common_launch_task.hpp:70:9: error: no member named 'host_task' in 'hipsycl::sycl::handler'
   70 |     cgh.host_task([functor, queue, capture_only_accessors...](sycl::interop_handle ih) {
      |     ~~~ ^
/lustre/orion/csc613/scratch/abagusetty/SYCL_compilers_05282025/oneMath/src/sparse_blas/backends/common_launch_task.hpp:88:9: error: no member named 'host_task' in 'hipsycl::sycl::handler'
   88 |     cgh.host_task(
      |     ~~~ ^
2 warnings and 8 errors generated.
Lingua principale
C++
Stelle
777
Fork
183
Merge medio
2g 16h
PR unite (30g)
6

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di uxlfoundation/oneMath

Tutte le issue di uxlfoundation/oneMath

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.