Query and set forward compatibility for GPU devices
returns tf
= parallel.gpu.enableCUDAForwardCompatibility()true
if forward compatibility for GPU devices is enabled and
false
otherwise. The default is false
.
When forward compatibility is disabled, you cannot perform computations using a GPU device with an architecture that was released after the version of MATLAB® you are using was built.
parallel.gpu.enableCUDAForwardCompatibility(
enables
or disables forward compatibility for GPU devices. tf
)tf
must be
true
(1
) or false
(0
).
If you enable forward compatibility, the CUDA® driver recompiles the GPU libraries the first time you access a device with an architecture newer than your MATLAB version. Recompilation can take several minutes.
Enabling forward compatibility is not persistent between MATLAB sessions.
Caution
Enabling forward compatibility can result in wrong answers and unexpected behavior during GPU computations.
For more information, see Forward Compatibility for GPU Devices.