Support for a generic GPU is implemented with generic SYCL kernels. The feature
is disabled by default. Users must enable it at build time with the CMake option
DNNL_GPU_VENDOR=GENERIC
. The target GPUs can be used via oneDNN engine
abstraction. The engine should be created using dnnl::engine::kind::gpu
engine
kind or the user can provide sycl::device
objects that correspond to the
target GPUs.
- Supported target devices: Intel and NVIDIA GPUs
- Intel GPUs
- NVIDIA GPUs
NOTE: The Intel GPU is the default target and therefore the SYCL kernels are always compiled at least for the default target. If the compiler also supports NVIDIA GPUs then the SYCL kernels will also be compiled for NVIDIA GPUs.
IMPORTANT: If there are multiple GPUs in the system it is the user's
responsibility to ensure that the correct SYCL device representing the target
GPU is selected at runtime. The environment variable ONEAPI_DEVICE_SELECTOR
may be used to restrict the set of devices that can be used. For example, if
there are Intel and NVIDIA GPUs in the system and the goal is to use the NVIDIA
one, the environment variable can be set to cuda:*
.
The implementation supports both forward and backward directions.
- Supported formats:
NCDHW
,NDHWC
,NCHW
,NHWC
,NCW
,NWC
,NC
The implementation supports both forward and backward directions.
- Supported algorithms:
abs
,clip
,clip_v2
,elu
,exp
,gelu_erf
,gelu_tanh
,hardsigmoid
,hardswish
,linear
,log
,logistic
,mish
,pow
,relu
,round
,soft_relu
,sqrt
,square
,swish
andtanh
- Supported formats:
NCDHW
,NDHWC
,NCHW
,NHWC
,NCW
,NWC
,NC
,N
The implementation supports both forward and backward directions.
- Supported formats:
NCDHW
,NDHWC
,NCHW
,NHWC
,NCW
,NWC
,NC
The implementation supports both forward and backward directions.
- Supported formats:
NCDHW
,NDHWC
,NCHW
,NHWC
,NCW
,NWC
The implementation supports both forward and backward propagations.
-
Supported formats:
NCDHW
,NDHWC
,NCHW
,NHWC
,NCW
,NWC
,NC
-
Forward pass supports
f32
,f16
,bf16
,s8
andu8
data types -
Backward pass supports
f32
andbf16
data types
- Format support limitations: blocked formats are not supported
- Supported data types:
f32
,bf16
,f16
,s8
,u8
The implementation supports both forward and backward directions.
- Supported formats:
NCDHW
,NDHWC
,NCHW
,NHWC
,NCW
,NWC
The implementation supports both forward and backward directions.
- Supported formats:
NCDHW
,NDHWC
,NCHW
,NHWC
,NCW
,NWC
,NC
The implementation supports both forward and backward propagations.
-
Supported formats:
NCDHW
,NDHWC
,NCHW
,NHWC
,NCW
,NWC
,NC
-
Forward pass supports
f32
,f16
,bf16
ands8
data types. -
Backward pass supports
f32
andbf16
data types.