mirror of
https://github.com/nomic-ai/kompute.git
synced 2026-05-11 17:09:59 +00:00
48 lines
1.8 KiB
YAML
48 lines
1.8 KiB
YAML
name: C++ Ubuntu
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build-ubuntu:
|
|
|
|
runs-on: ubuntu-18.04
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
- name: Install Dependencies
|
|
run: |
|
|
sudo apt-get install libvulkan-dev
|
|
#swiftshader vulkan cpu implementation
|
|
sudo wget https://www.dropbox.com/s/d0weho6l8dovm71/libvk_swiftshader.so?dl=1 -O /usr/lib/libvk_swiftshader.so
|
|
sudo mkdir -p /usr/share/vulkan/icd.d
|
|
sudo wget https://www.dropbox.com/s/5oly49ev3vvcfdu/vk_swiftshader_icd.json?dl=1 -O /usr/share/vulkan/icd.d/vk_swiftshader_icd.json
|
|
- name: configure
|
|
run: |
|
|
cmake . -Bbuild/ \
|
|
-DKOMPUTE_OPT_BUILD_TESTS=1 \
|
|
-DKOMPUTE_OPT_INSTALL=1 \
|
|
-DKOMPUTE_OPT_ENABLE_SPDLOG=1 \
|
|
-DSPDLOG_INSTALL=1 \
|
|
-DKOMPUTE_OPT_REPO_SUBMODULE_BUILD=1 \
|
|
-DKOMPUTE_OPT_BUILD_TESTS=1
|
|
- name: build
|
|
run: |
|
|
make -C build/ -j
|
|
- name: tests
|
|
run: |
|
|
# Only running tests that dont require GLSL compilation
|
|
./build/test/test_kompute --gtest_filter="TestLogisticRegressionAlgorithm.*"
|
|
./build/test/test_kompute --gtest_filter="TestManager.*"
|
|
./build/test/test_kompute --gtest_filter="TestOpAlgoBase.ShaderCompiledDataFromConstructor"
|
|
./build/test/test_kompute --gtest_filter="TestOpTensorCopy.*"
|
|
./build/test/test_kompute --gtest_filter="TestOpTensorCreate.*"
|
|
./build/test/test_kompute --gtest_filter="TestOpTensorSync.*"
|
|
./build/test/test_kompute --gtest_filter="TestSequence.*"
|
|
./build/test/test_kompute --gtest_filter="TestTensor.*"
|