Skip to content

Commit

Permalink
ship makefile, find and build tests
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-b-miller committed Oct 9, 2024
1 parent dccd6db commit 9aaa21f
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
14 changes: 14 additions & 0 deletions ci/build_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
# Copyright (c) 2024, NVIDIA CORPORATION

PY_SCRIPT="
import numba_cuda
root = numba_cuda.__file__.rstrip('__init__.py')
test_dir = root + numba/cuda/tests/test_binary_generation/
print(test_dir)
"

TEST_DIR=$(python -c "$PY_SCRIPT")
pushd $TEST_DIR
make
popd
1 change: 1 addition & 0 deletions ci/test_conda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ if [ "$USE_PYNVJITLINK" == true ]; then
set +u
conda install -c rapidsai pynvjitlink
set -u
sh build_tests.sh
fi

rapids-logger "Run Tests"
Expand Down
1 change: 1 addition & 0 deletions ci/test_wheel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ python -m pip install \
if [ "$USE_PYNVJITLINK" == true ]; then
rapids-logger "Install pynvjitlink"
python -m pip install pynvjitlink-cu12
sh build_tests.sh
fi

rapids-logger "Install wheel"
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ license-files = ["LICENSE"]
include = ["numba_cuda*"]

[tool.setuptools.package-data]
"*" = ["*.cu", "*.h", "*.hpp", "*.ptx", "VERSION"]
"*" = ["*.cu", "*.h", "*.hpp", "*.ptx", "VERSION", "Makefile"]

0 comments on commit 9aaa21f

Please sign in to comment.