We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fc05e3 commit 37a3d82Copy full SHA for 37a3d82
test/legacy_test/op_test.py
@@ -410,8 +410,8 @@ def get_devices():
410
if (
411
os.environ.get('FLAGS_CI_both_cpu_and_gpu', 'False').lower()
412
in ['1', 'true', 'on']
413
- or not paddle.is_compiled_with_cuda()
414
- ):
+ or not core.is_compiled_with_cuda()
+ ) and not is_custom_device():
415
devices.append('cpu')
416
if paddle.is_compiled_with_cuda():
417
devices.append('gpu')
0 commit comments