Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8bf7fa6

Browse filesBrowse files
committed
Add opencl test
1 parent 446d5f5 commit 8bf7fa6
Copy full SHA for 8bf7fa6

File tree

Expand file treeCollapse file tree

1 file changed

+27
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+27
-0
lines changed

‎.github/workflows/test.yaml

Copy file name to clipboardExpand all lines: .github/workflows/test.yaml
+27Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,33 @@ jobs:
7878
run: |
7979
python3 -m pytest
8080
81+
build-linux-opencl:
82+
83+
runs-on: macos-latest
84+
85+
steps:
86+
- uses: actions/checkout@v3
87+
with:
88+
submodules: "true"
89+
- name: Set up Python 3.8
90+
uses: actions/setup-python@v4
91+
with:
92+
python-version: "3.8"
93+
- name: Set up OpenCL & CLBlast
94+
run: |
95+
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
96+
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
97+
sudo apt-get update
98+
sudo apt-get install -y --no-install-recommends llvm intel-oneapi-runtime-opencl intel-oneapi-runtime-compilers libclblast-dev
99+
- name: Install dependencies
100+
run: |
101+
python3 -m pip install --upgrade pip
102+
CMAKE_ARGS="-DLLAMA_METAL=on" python3 -m pip install .[all] --verbose
103+
- name: Test with pytest
104+
run: |
105+
python3 -m pytest
106+
107+
81108
build-macos-metal:
82109

83110
runs-on: macos-latest

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.