-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux cuda separate cpu instruction and enable sccache (#101)
Co-authored-by: Hien To <[email protected]>
- Loading branch information
Showing
7 changed files
with
285 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,52 +61,84 @@ jobs: | |
include: | ||
- os: "linux" | ||
name: "amd64-avx2" | ||
runs-on: "ubuntu-18-04" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF" | ||
runs-on: "ubuntu-20-04" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: true | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx" | ||
runs-on: "ubuntu-18-04" | ||
cmake-flags: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF" | ||
runs-on: "ubuntu-20-04" | ||
cmake-flags: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx512" | ||
runs-on: "ubuntu-18-04" | ||
cmake-flags: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF" | ||
runs-on: "ubuntu-20-04" | ||
cmake-flags: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-vulkan" | ||
runs-on: "ubuntu-18-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_VULKAN=ON -DLLAMA_NATIVE=OFF" | ||
runs-on: "ubuntu-20-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_VULKAN=ON -DLLAMA_NATIVE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: true | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-cuda-11-7" | ||
runs-on: "ubuntu-18-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON" | ||
name: "amd64-avx2-cuda-11-7" | ||
runs-on: "ubuntu-20-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-cuda-12-0" | ||
runs-on: "ubuntu-18-04-cuda-12-0" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON" | ||
name: "amd64-avx-cuda-11-7" | ||
runs-on: "ubuntu-20-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx512-cuda-11-7" | ||
runs-on: "ubuntu-20-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx2-cuda-12-0" | ||
runs-on: "ubuntu-20-04-cuda-12-0" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx-cuda-12-0" | ||
runs-on: "ubuntu-20-04-cuda-12-0" | ||
cmake-flags: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx512-cuda-12-0" | ||
runs-on: "ubuntu-20-04-cuda-12-0" | ||
cmake-flags: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "mac" | ||
name: "amd64" | ||
runs-on: "macos-13" | ||
|
@@ -252,6 +284,11 @@ jobs: | |
run: | | ||
choco install make sccache ninja -y | ||
- name: Install ninja build on Linux | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt install ninja-build -y | ||
- name: Add msbuild to PATH | ||
if: runner.os == 'Windows' | ||
uses: ilammy/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,52 +62,84 @@ jobs: | |
include: | ||
- os: "linux" | ||
name: "amd64-avx2" | ||
runs-on: "ubuntu-18-04" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF" | ||
runs-on: "ubuntu-20-04" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: true | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx" | ||
runs-on: "ubuntu-18-04" | ||
cmake-flags: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF" | ||
runs-on: "ubuntu-20-04" | ||
cmake-flags: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx512" | ||
runs-on: "ubuntu-18-04" | ||
cmake-flags: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF" | ||
runs-on: "ubuntu-20-04" | ||
cmake-flags: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-vulkan" | ||
runs-on: "ubuntu-18-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_VULKAN=ON -DLLAMA_NATIVE=OFF" | ||
runs-on: "ubuntu-20-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_VULKAN=ON -DLLAMA_NATIVE=OFF -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: true | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-cuda-11-7" | ||
runs-on: "ubuntu-18-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON" | ||
name: "amd64-avx2-cuda-11-7" | ||
runs-on: "ubuntu-20-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-cuda-12-0" | ||
runs-on: "ubuntu-18-04-cuda-12-0" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON" | ||
name: "amd64-avx-cuda-11-7" | ||
runs-on: "ubuntu-20-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: false | ||
sccache-conf-path: "" | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx512-cuda-11-7" | ||
runs-on: "ubuntu-20-04-cuda-11-7" | ||
cmake-flags: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx2-cuda-12-0" | ||
runs-on: "ubuntu-20-04-cuda-12-0" | ||
cmake-flags: "-DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx-cuda-12-0" | ||
runs-on: "ubuntu-20-04-cuda-12-0" | ||
cmake-flags: "-DLLAMA_AVX2=OFF -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "linux" | ||
name: "amd64-avx512-cuda-12-0" | ||
runs-on: "ubuntu-20-04-cuda-12-0" | ||
cmake-flags: "-DLLAMA_AVX512=ON -DLLAMA_NATIVE=OFF -DLLAMA_CUDA=ON -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE='Release' -GNinja" | ||
run-e2e: false | ||
vulkan: false | ||
sccache: true | ||
sccache-conf-path: "/tmp/sccache.conf" | ||
- os: "mac" | ||
name: "amd64" | ||
runs-on: "macos-13" | ||
|
@@ -253,6 +285,11 @@ jobs: | |
run: | | ||
choco install make sccache ninja -y | ||
- name: Install ninja build on Linux | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt install ninja-build -y | ||
- name: Add msbuild to PATH | ||
if: runner.os == 'Windows' | ||
uses: ilammy/[email protected] | ||
|
Oops, something went wrong.