0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

PGIコンパイラに含まれるCUDAのバージョンを調べる方法

Posted at

/opt/pgi/以下に複数のバージョンをインストールした場合はこんな感じです。

$ls /opt/pgi/*/linux86-64/201*/cuda/

こんな感じでずらっと出てきます(時系列で手でソートしています)。

/opt/pgi/18.1/linux86-64/2018/cuda/:
8.0  9.0  9.1
/opt/pgi/18.3/linux86-64/2018/cuda/:
8.0  9.0  9.1
/opt/pgi/18.4/linux86-64/2018/cuda/:
8.0  9.0  9.1
/opt/pgi/18.5/linux86-64/2018/cuda/:
8.0  9.0  9.1  9.2
/opt/pgi/18.7/linux86-64/2018/cuda/:
9.1  9.2
/opt/pgi/18.10/linux86-64/2018/cuda/:
10.0  9.1  9.2
/opt/pgi/19.1/linux86-64/2019/cuda/:
10.0  9.2
/opt/pgi/19.3/linux86-64/2019/cuda/:
10.0  10.1  9.2
/opt/pgi/19.4/linux86-64/2019/cuda/:
10.0  10.1  9.2
/opt/pgi/19.5/linux86-64/2019/cuda/:
10.0  10.1  9.2

どのタイミングで含まれて外れるのかわかります。
どのバージョンが使われるかは、コンパイルオプションで陽に指定するのが一番だと思いますが、デフォルトでなにが選択されるかは、CUDAドライバのバージョンによって決まります。nvidia-smiかpgaccelinfoでドライバのバージョンを調べておくことが必要です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?