From 95df064dbb7ec7c2714c1ddff44edd9038ca1986 Mon Sep 17 00:00:00 2001 From: Alejandro Saucedo Date: Sun, 14 Feb 2021 17:16:47 +0000 Subject: [PATCH] updated pytests and fixed dangling spdlog code in python main.cpp --- .github/workflows/python_tests.yml | 5 +---- python/src/main.cpp | 2 -- python/test/test_kompute.py | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python_tests.yml b/.github/workflows/python_tests.yml index 8dafe41..2649c98 100644 --- a/.github/workflows/python_tests.yml +++ b/.github/workflows/python_tests.yml @@ -25,9 +25,6 @@ jobs: - name: test-python run: | export VK_ICD_FILENAMES=/swiftshader/vk_swiftshader_icd.json - pytest -v python/test/test_array_multiplication.py - pytest -v python/test/test_kompute.py -k "test_opmult" - pytest -v python/test/test_kompute.py -k "test_tensor_rebuild_backwards_compat" - pytest -v python/test/test_logistic_regression.py + pytest -v python/test/ diff --git a/python/src/main.cpp b/python/src/main.cpp index c9e5beb..c70863a 100644 --- a/python/src/main.cpp +++ b/python/src/main.cpp @@ -11,8 +11,6 @@ namespace py = pybind11; py::object kp_debug, kp_info, kp_warning, kp_error; PYBIND11_MODULE(kp, m) { - spdlog::set_level( - static_cast(0)); // The logging modules are used in the Kompute.hpp file py::module_ logging = py::module_::import("logging"); diff --git a/python/test/test_kompute.py b/python/test/test_kompute.py index b3f1f28..f6e549f 100644 --- a/python/test/test_kompute.py +++ b/python/test/test_kompute.py @@ -41,7 +41,7 @@ def test_opalgobase_file(): mgr = kp.Manager() mgr.rebuild([tensor_in_a, tensor_in_b, tensor_out]) - shader_path = os.path.join(DIRNAME, "../../shaders/glsl/opmult.comp") + shader_path = os.path.join(DIRNAME, "../../shaders/glsl/opmult.comp.spv") mgr.eval_algo_file_def([tensor_in_a, tensor_in_b, tensor_out], shader_path)