ソースを参照

Make sure to take control of the right GPU

Samuel Thibault 14 年 前
コミット
dfec7f881c
共有1 個のファイルを変更した1 個の追加0 個の削除を含む
  1. 1 0
      doc/chapters/advanced-examples.texi

+ 1 - 0
doc/chapters/advanced-examples.texi

@@ -666,6 +666,7 @@ be given the CUDA pointer at registration, for instance:
 
 	starpu_data_unregister(handle);
 
+	cudaSetDevice(starpu_worker_get_devid(workerid));
 	cudaGraphicsUnmapResources(1, &resource, 0);
 
 	/* Now display it */