`gemm` throws exception on PVC
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 15/100
Direzione di ricerca
Start from the reproducer's oneapi::mkl::blas::row_major::gemm call with USM device pointers, and locate the kernel named oneapi::mkl::blas::sgemm_itcopy where the Level-Zero error is raised. Build the reproducer on a PVC device and check whether the failure reproduces. Done means the gemm call completes on the device without the Level-Zero exception, verified with the reproducer. The issue is stale, has 16 comments, and has no assignee, so confirm with maintainers before starting.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
I'm trying to use gemm on PVC, but it keeps throwing an exception. Please let me know where I'm going wrong.
I am attempting to use gemm and execute on a 4oam PVC system on ORTCE. I am getting an exception thrown with both production icpx and with the most recent version of intel/llvm, both compiled with production oneMKL.
A minimal reproducer is attached below.
sycl::queue q(sycl::default_selector_v);
T* a_d = sycl::malloc_device<T>(m * k, q);
T* b_d = sycl::malloc_device<T>(k * n, q);
T* c_d = sycl::malloc_device<T>(m * n, q);
std::vector<T> a_l(m*k);
std::vector<T> b_l(k*n);
std::vector<T> c_l(m*n, 0);
for (std::size_t i = 0; i < m*k; i++) {
a_l[i] = drand48();
}
for (std::size_t i = 0; i < k*n; i++) {
b_l[i] = drand48();
}
q.memcpy(a_d, a_l.data(), m*k*sizeof(T)).wait();
q.memcpy(b_d, b_l.data(), k*n*sizeof(T)).wait();
q.memcpy(c_d, c_l.data(), m*n*sizeof(T)).wait();
std::cout << "Running MKL gemm..." << std::endl;
auto event = oneapi::mkl::blas::row_major::gemm(q,
oneapi::mkl::transpose::nontrans,
oneapi::mkl::transpose::nontrans,
m, n, k,
T(1),
a_d, k,
b_d, n,
T(1),
c_d, n);
event.wait();
This throws the following exception:
(base) bbrock@sdp4452:~/src/issues/oneMKL_gemm$ ./gemm
Running MKL gemm...
terminate called after throwing an instance of 'sycl::_V1::exception'
what(): Level-Zero error:700000041879048196
On device: 'Intel(R) Graphics [0x0bd5]'
in kernel: oneapi::mkl::blas::sgemm_itcopy
Aborted (core dumped)
As far as I can tell, I am allocating enough memory, and all of the pointers I'm passing in are USM device pointers, which should be accessible on the device associated with the queue passed to oneMKL.
Version
I am using production oneMKL 2023.1.0.
Environment
I am running this on a machine with four PVC GPUs.
(base) bbrock@sdp125071:~/src/distributed-ranges/examples/shp$ sycl-ls
[opencl:acc:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device OpenCL 1.2 [2023.15.3.0.20_160000]
[opencl:cpu:1] Intel(R) OpenCL, Intel (R) Xeon (R) CPU Max 9480 OpenCL 3.0 (Build 0) [2023.15.3.0.20_160000]
[ext_oneapi_level_zero:gpu:0] Intel(R) Level-Zero, Intel(R) Graphics [0x0bd5] 1.3 [1.3.24595]
[ext_oneapi_level_zero:gpu:1] Intel(R) Level-Zero, Intel(R) Graphics [0x0bd5] 1.3 [1.3.24595]
[ext_oneapi_level_zero:gpu:2] Intel(R) Level-Zero, Intel(R) Graphics [0x0bd5] 1.3 [1.3.24595]
[ext_oneapi_level_zero:gpu:3] Intel(R) Level-Zero, Intel(R) Graphics [0x0bd5] 1.3 [1.3.24595]
I am using production oneMKL 2023.1.0.
I am getting this error with both the most recent commit of intel/llvm and with production icpx.
(base) bbrock@sdp125071:~/src/distributed-ranges/examples/shp$ icpx --version
Intel(R) oneAPI DPC++/C++ Compiler 2023.1.0 (2023.1.0.20230320)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm
Configuration file: /opt/intel/oneapi/compiler/2023.1.0/linux/bin-llvm/../bin/icpx.cfg
Steps to reproduce
(base) bbrock@sdp125071:~/src/issues/oneMKL_gemm$ ./gemm
MESA: warning: Driver does not support the 0xbd5 PCI ID.
MESA: warning: Driver does not support the 0xbd5 PCI ID.
MESA: warning: Driver does not support the 0xbd5 PCI ID.
MESA: warning: Driver does not support the 0xbd5 PCI ID.
Running MKL gemm...
terminate called after throwing an instance of 'sycl::_V1::exception'
what(): Level-Zero error:700000041879048196
On device: 'Intel(R) Graphics [0x0bd5]'
in kernel: oneapi::mkl::blas::sgemm_itcopy
Aborted (core dumped)
Observed behavior
Throws an exception as above.
Expected behavior
I expect the kernel to execute successfully.
- Lingua principale
- C++
- Stelle
- 777
- Fork
- 183
- Merge medio
- 2g 16h
- PR unite (30g)
- 6
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di uxlfoundation/oneMath
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 39/100
uxlfoundation/oneMath#795 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
uxlfoundation/oneMath#789 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 8/100
uxlfoundation/oneMath#786 ·
I maintainer di solito rispondono entro 1 giorno
-
[DFT][rocFFT] Add regression tests for stride validation and rank handlingForse già presa @zjin-lcf l’ha presa 56 giorni fa. Aperta
Difficoltà 4/5 1-2 giorni Idoneità per principianti 35/100
uxlfoundation/oneMath#771 ·
I maintainer di solito rispondono entro 1 giorno
-
Example code for SYCL generic BLAS and portFFT backendsForse già presa @zjin-lcf l’ha presa 106 giorni fa. Aperta
Difficoltà 3/5 Mezza giornata Idoneità per principianti 22/100
uxlfoundation/oneMath#714 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di uxlfoundation/oneMath
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
-
triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
patrick-hudson/put.gd-desktop#2044 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
uxlfoundation/oneDNN#6604 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni