Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ requirements:

test:
requires:
- gtest >=1.10
- pytest
- pytest-cov

Expand Down
1 change: 0 additions & 1 deletion dpctl-capi/tests/test_sycl_program_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ TEST_P(TestDPCTLSyclProgramInterface, Chk_CreateFromSpirv)
ASSERT_TRUE(PRef != nullptr);
ASSERT_TRUE(DPCTLProgram_HasKernel(PRef, "add"));
ASSERT_TRUE(DPCTLProgram_HasKernel(PRef, "axpy"));
DPCTLProgram_Delete(PRef);
}

TEST_P(TestDPCTLSyclProgramInterface, Chk_GetKernel)
Expand Down
2 changes: 2 additions & 0 deletions scripts/build_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,13 @@
"-DDPCPP_INSTALL_DIR=" + DPCPP_ROOT,
"-DCMAKE_C_COMPILER:PATH=" + os.path.join(DPCPP_ROOT, "bin", "clang"),
"-DCMAKE_CXX_COMPILER:PATH=" + os.path.join(DPCPP_ROOT, "bin", "dpcpp"),
"-DDPCTL_BUILD_CAPI_TESTS=ON",
"-DDPCTL_ENABLE_LO_PROGRAM_CREATION=ON",
backends,
]
subprocess.check_call(cmake_args, stderr=subprocess.STDOUT, shell=False)
subprocess.check_call(["make", "V=1", "-j", "4"])
subprocess.check_call(["make", "check"])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a note: check_call raises an exception if the subprocess returns with a non-zero return code, so any failures in C-API test suite will fail the Python build as desired.

subprocess.check_call(["make", "install"])

os.chdir(dpctl_dir)
Expand Down