Added further tests for ci

This commit is contained in:
Alejandro Saucedo 2021-01-20 21:21:07 +00:00
parent 661a50e62d
commit fbfef16105
3 changed files with 14 additions and 5 deletions

View file

@ -37,6 +37,12 @@ jobs:
- name: tests
run: |
#only running tests that dont require GLSL compilation
./build/test/test_kompute --gtest_filter=*Tensor*
./build/test/test_kompute --gtest_filter=TestManager*
./build/test/test_kompute --gtest_filter="TestMainLogisticRegression.*"
./build/test/test_kompute --gtest_filter="TestManager.*"
./build/test/test_kompute --gtest_filter="TestOpAlgoBase.ShaderCompiledDataFromConstructor"
#./build/test/test_kompute --gtest_filter="TestOpAlgoBase.ShaderCompiledDataFromFile"
./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.*"

View file

@ -45,7 +45,7 @@ TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegression)
sq->record<kp::OpTensorSyncDevice>({ wIn, bIn });
sq->record<kp::OpAlgoBase>(
params, "test/shaders/glsl/test_logistic_regression.comp");
params, "test/shaders/glsl/test_logistic_regression.comp.spv");
sq->record<kp::OpTensorSyncLocal>({ wOutI, wOutJ, bOut, lOut });
@ -124,7 +124,7 @@ TEST(TestLogisticRegressionAlgorithm, TestMainLogisticRegressionManualCopy)
sq->begin();
sq->record<kp::OpAlgoBase>(
params, "test/shaders/glsl/test_logistic_regression.comp");
params, "test/shaders/glsl/test_logistic_regression.comp.spv");
sq->record<kp::OpTensorSyncLocal>({ wOutI, wOutJ, bOut, lOut });

View file

@ -1,7 +1,10 @@
#version 450
layout (local_size_x = 1) in;
layout(set = 0, binding = 0) buffer a { float pa[]; };
layout(set = 0, binding = 1) buffer b { float pb[]; };
void main() {
uint index = gl_GlobalInvocationID.x;
pb[index] = pa[index];