test opencl, commit to removing the crap conv code from GPU

This commit is contained in:
George Hotz
2022-07-17 11:55:37 -07:00
parent 3c4565fa21
commit 608e2431f7
4 changed files with 39 additions and 38 deletions

View File

@@ -96,10 +96,32 @@ jobs:
python-version: 3.8
- name: Install Dependencies
run: pip install -e '.[gpu,testing]'
- name: Run Pytest
run: LAZY=0 GPU=1 python -m pytest -s -v
- name: Run Pytest (lazy)
run: LAZY=1 GPU=1 python -m pytest -s -v
- name: Run Pytest (default)
run: GPU=1 python -m pytest -s -v
testgpu:
name: OpenCL Tests
runs-on: ubuntu-20.04
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Update packages
run: |
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
sudo apt-get update
- name: Install OpenCL
#run: sudo apt-get install -y pocl-opencl-icd
run: sudo apt-get install -y intel-oneapi-runtime-compilers intel-oneapi-runtime-opencl
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Dependencies
run: pip install -e '.[gpu,testing]'
- name: Run Pytest (default)
run: OPENCL=1 python -m pytest -s -v
testmypy:
name: Mypy Tests