瀏覽代碼

Fix test in opencl-only executions

Samuel Thibault 5 年之前
父節點
當前提交
88a90c4df8
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      examples/spmv/dw_block_spmv.c

+ 3 - 1
examples/spmv/dw_block_spmv.c

@@ -1,6 +1,6 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
- * Copyright (C) 2008-2015,2017,2019                      Université de Bordeaux
+ * Copyright (C) 2008-2015,2017,2019-2020                 Université de Bordeaux
  * Copyright (C) 2012,2013                                Inria
  * Copyright (C) 2010                                     Mehdi Juhoor
  * Copyright (C) 2010-2017                                CNRS
@@ -265,6 +265,8 @@ void launch_spmv_codelets(void)
 		}
 
 		ret = starpu_task_submit(&task_tab[task]);
+		if (ret == -ENODEV)
+			exit(STARPU_TEST_SKIPPED);
 		STARPU_CHECK_RETURN_VALUE(ret, "starpu_task_submit");
 	}