"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "b0f7db73cd2fd10142668d43fd30906a438f05f3"
Unverified Commit e62091d5 authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

[CI] move env print to util, add pt, nccl versions (#14607)

* move env print to util, add pt, nccl versions

* style

* version

* align
parent 66ea7391
...@@ -40,10 +40,7 @@ jobs: ...@@ -40,10 +40,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Run all tests on GPU - name: Run all tests on GPU
run: | run: |
...@@ -110,10 +107,7 @@ jobs: ...@@ -110,10 +107,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Run all tests on GPU - name: Run all tests on GPU
env: env:
...@@ -166,10 +160,7 @@ jobs: ...@@ -166,10 +160,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Run all tests on GPU - name: Run all tests on GPU
run: | run: |
...@@ -211,10 +202,7 @@ jobs: ...@@ -211,10 +202,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Run all tests on GPU - name: Run all tests on GPU
run: | run: |
......
...@@ -46,10 +46,7 @@ jobs: ...@@ -46,10 +46,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Fetch the tests to run - name: Fetch the tests to run
run: | run: |
...@@ -216,10 +213,7 @@ jobs: ...@@ -216,10 +213,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Fetch the tests to run - name: Fetch the tests to run
run: | run: |
...@@ -385,10 +379,7 @@ jobs: ...@@ -385,10 +379,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Fetch the tests to run - name: Fetch the tests to run
run: | run: |
...@@ -442,10 +433,7 @@ jobs: ...@@ -442,10 +433,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Fetch the tests to run - name: Fetch the tests to run
run: | run: |
......
...@@ -39,10 +39,7 @@ jobs: ...@@ -39,10 +39,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Run all tests on GPU - name: Run all tests on GPU
run: | run: |
...@@ -242,10 +239,7 @@ jobs: ...@@ -242,10 +239,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Run all tests on GPU - name: Run all tests on GPU
env: env:
...@@ -391,10 +385,7 @@ jobs: ...@@ -391,10 +385,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Run all tests on GPU - name: Run all tests on GPU
run: | run: |
...@@ -434,10 +425,7 @@ jobs: ...@@ -434,10 +425,7 @@ jobs:
- name: Are GPUs recognized by our DL frameworks - name: Are GPUs recognized by our DL frameworks
run: | run: |
python -c "import torch; print('Cuda available:', torch.cuda.is_available())" utils/print_env_pt.py
python -c "import torch; print('Cuda version:', torch.version.cuda)"
python -c "import torch; print('CuDNN version:', torch.backends.cudnn.version())"
python -c "import torch; print('Number of GPUs available:', torch.cuda.device_count())"
- name: Run all tests on GPU - name: Run all tests on GPU
run: | run: |
......
#!/usr/bin/env python3
# coding=utf-8
# Copyright 2020 The HuggingFace Inc. team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# this script dumps information about the environment
import torch
print("Torch version:", torch.__version__)
print("Cuda available:", torch.cuda.is_available())
print("Cuda version:", torch.version.cuda)
print("CuDNN version:", torch.backends.cudnn.version())
print("Number of GPUs available:", torch.cuda.device_count())
print("NCCL version:", torch.cuda.nccl.version())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment