is_compiled_with_cuda

paddle.fluid.is_compiled_with_cuda()[source]

Whether this whl package can be used to run the model on GPU.

Returns (bool): support gpu or not.

Examples

import paddle.fluid as fluid
support_gpu = fluid.is_compiled_with_cuda()