ソースを参照

test_interfaces.c : make sure load_conf() does not fail when CPUs are disabled

Cyril Roelandt 13 年 前
コミット
12f6d413de
共有1 個のファイルを変更した2 個の追加0 個の削除を含む
  1. 2 0
      tests/datawizard/interfaces/test_interfaces.c

+ 2 - 0
tests/datawizard/interfaces/test_interfaces.c

@@ -541,7 +541,9 @@ static int
 load_conf(struct test_config *config)
 {
 	if (!config ||
+#ifdef STARPU_USE_CPU
 	    !config->cpu_func ||
+#endif
 #ifdef STARPU_USE_CUDA
 	    !config->cuda_func ||
 #endif