Comments (8)
@sgeor255 , @dylan-angus-codeplay could you please look into that please.
from onednn.
Hi @sgeor255,
Thanks for trying to reproduce the issue on your end.
We could not install version 2023.2.1 since it is not available to download.
For now, we will conduct tests with an explicit ONEAPI_DEVICE_SELECTOR
.
Once 2023.2.1 is available to download, we will test again and update the thread.
Thanks very much for your time.
from onednn.
from onednn.
Hi @vpirogov
The debug with SYCL_PI_TRACE=1
shows that the correct CUDA backend is selected
$ SYCL_PI_TRACE=1 ./benchdnn --engine=gpu:0 --binary 3x4x5:3x4x5
SYCL_PI_TRACE[basic]: Plugin found and successfully loaded: libpi_opencl.so [ PluginVersion: 12.27.1 ]
SYCL_PI_TRACE[basic]: Plugin found and successfully loaded: libpi_cuda.so [ PluginVersion: 12.27.1 ]
SYCL_PI_TRACE[all]: Requested device_type: info::device_type::gpu
SYCL_PI_TRACE[all]: Requested device_type: info::device_type::gpu
SYCL_PI_TRACE[all]: Requested device_type: info::device_type::gpu
SYCL_PI_TRACE[all]: Selected device: -> final score = 2000
SYCL_PI_TRACE[all]: platform: NVIDIA CUDA BACKEND
SYCL_PI_TRACE[all]: device: NVIDIA A100-SXM4-80GB
Segmentation fault (core dumped)
I then realized that the cpu backend needs to be explicitly specified as well
$ ONEAPI_DEVICE_SELECTOR="cuda:*" ./benchdnn --engine=gpu:0 --binary 3x4x5:3x4x5
ERROR: can't create CPU engine. Possible reasons for this error:
- Incorrect SYCL_DEVICE_FILTER. The filter must be either unset or include 'opencl:cpu' devices.
- Missing TBB library which is required for OpenCL CPU runtime. Check that TBB library is available in the system.
- Missing OpenCL CPU runtime or other issues with OpenCL CPU runtime. Check that output from `sycl-ls` or `clinfo -l` commands include any CPU devices.
error [engine_t::engine_t(dnnl_engine_kind_t):1215]: 'status' -> invalid_arguments(2)
Per the first suggestion, the correct way to run benchdnn
would be
$ ONEAPI_DEVICE_SELECTOR="opencl:cpu;cuda:*" ./benchdnn --engine=gpu:0 --binary 3x4x5:3x4x5
0:PASSED __REPRO: --binary --engine=gpu 3x4x5:3x4x5
tests:1 passed:1 skipped:0 mistrusted:0 unimplemented:0 invalid_arguments:0 failed:0 listed:0
total compute_ref: sum(s):0.00
Though I am somewhat confused regarding the default behavior when ONEAPI_DEVICE_SELECTOR
is not set.
The debug message shows that libpi_opencl.so
is found and successfully loaded.
Therefore , there should be no issue with the creation of CPU engine.
from onednn.
Thanks for update, @vitduck. We definitely should not segfault with default ONEAPI_DEVICE_SELECTOR
setting.
from onednn.
Thanks @vpirogov , we are looking into this.
from onednn.
Hi, we tried to reproduce the segfault reported above, however with our setup (oneAPI basekit 2023.2.1, cuda 11.7.1, cudnn 8.9.0), we can't reproduce the segfault. From the follow up comment it looks like @vitduck has managed to work around the issue, however if this is still a problem we would suggest updating the dependencies (most likely the oneAPI basekit version is the culprit) and rerunning the test. If you the segfault is still seen, please let us know and we will look into it further. Thanks
from onednn.
Confirmed that the issue does not reproduce with oneAPI 2024.0 and oneDNN v3.3.3:
$ DNNL_VERBOSE=1 ./benchdnn --engine=gpu --binary 3x4x5:3x4x5
onednn_verbose,info,oneDNN v3.3.3 (commit c0ae38cdf1201caf8ffd2906077defdfe7f4aaa3)
onednn_verbose,info,cpu,runtime:DPC++,nthr:48
onednn_verbose,info,cpu,isa:Intel AVX-512 with Intel DL Boost
onednn_verbose,info,gpu,runtime:DPC++
onednn_verbose,info,cpu,engine,0,backend:OpenCL,name:Intel(R) Xeon(R) Silver 4310 CPU @ 2.10GHz,driver_version:2023.16.10,binary_kernels:disabled
onednn_verbose,info,gpu,engine,0,backend:Nvidia,name:NVIDIA A10,driver_version:0.0.0,binary_kernels:disabled
onednn_verbose,primitive,info,template:operation,engine,primitive,implementation,prop_kind,memory_descriptors,attributes,auxiliary,problem_desc,exec_time
onednn_verbose,primitive,exec,cpu,reorder,jit:uni,undef,src_f32::blocked:abc::f0 dst_f32::blocked:abc::f0,,,3x4x5,0.440186
onednn_verbose,primitive,exec,cpu,reorder,jit:uni,undef,src_f32::blocked:abc::f0 dst_f32::blocked:abc::f0,,,3x4x5,0.24292
onednn_verbose,primitive,exec,gpu,binary,cuda:cudnn:any,undef,src_f32::blocked:abc::f0 src_f32:a:blocked:abc::f0 dst_f32:a:blocked:abc::f0,,alg:binary_add,3x4x5:3x4x5,1.53296
onednn_verbose,primitive,exec,cpu,reorder,jit:uni,undef,src_f32::blocked:abc::f0 dst_f32::blocked:abc::f0,,,3x4x5,0.295898
0:PASSED __REPRO: --binary --engine=gpu 3x4x5:3x4x5
tests:1 passed:1 skipped:0 mistrusted:0 unimplemented:0 invalid_arguments:0 failed:0 listed:0
total: 2.04s; fill: 0.09s (4%); compute_ref: 0.00s (0%); compare: 0.00s (0%);
from onednn.
Related Issues (20)
- running destructors before completion of a primitive HOT 7
- why the result of eltwise_hardswish is zero? HOT 8
- test_benchdnn_modeC_softmax_ci_cpu fails due to F16 accumulation HOT 2
- Check timings of assembly level instructions HOT 10
- How to use coverage.cmake file HOT 5
- Add option to disable python 2.7 finding via docs HOT 5
- why the result shape of conv is not same with input HOT 3
- test_benchdnn_modeC_rnn_ci_cpu failing on AArch64 with and without ACL
- how to link the dnnl library from a git submodule build HOT 7
- how can i use the cache for cpu inference HOT 12
- 'ONEDNN_VERBOSE' is not recognized at the windows cmd HOT 2
- Core utilization on heterogeneous architectures HOT 2
- when i set the ONEDNN_VERBOSE=all for windows, it only display serveral information, why? HOT 2
- why the reorder cost a lot time? HOT 9
- Getting configuration error on RiscV Qemu: Only Sequential Runtime is now supported for a Risc-V CPU HOT 4
- can support the fp16 or bf16 for cpu with 3.3.6 version? HOT 11
- when i compile the dll of onednn wit debug, it failds to build, but the release is built successfully。 HOT 2
- how can i close the verbose when running HOT 4
- Graphs with single StaticReshape or StaticTranspose fail HOT 12
- test_benchdnn_modeC_reorder_ci_cpu failing on AArch64 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onednn.