ソースを参照

Even if CUDA is installed on the machine, there may be no GPU available.

Cédric Augonnet 15 年 前
コミット
c2393291f1
共有1 個のファイルを変更した1 個の追加0 個の削除を含む
  1. 1 0
      src/core/topology.c

+ 1 - 0
src/core/topology.c

@@ -175,6 +175,7 @@ static void _starpu_initialize_workers_gpuid(int use_explicit_workers_gpuid, int
 	else
 	{
 		/* by default, we take a round robin policy */
+		if (nhwgpus > 0)
 		for (i = 0; i < STARPU_NMAXWORKERS; i++)
 			workers_gpuid[i] = (unsigned)(i % nhwgpus);