Fixing CUDA on CPU in case of no work

6 jobs for master in 31 seconds
Status Job ID Name Coverage
  Build
passed #9450
centos
centos_build

00:00:14

passed #9451
mac
mac_build

00:00:10

passed #9452
ubuntu
ubuntu_build

00:00:10

 
  Test
passed #9453
centos
centos_run

00:00:02

passed #9454
mac
mac_run

00:00:01

passed #9455
ubuntu
ubuntu_run

00:00:00