diff --git a/.github/workflows/cuda_ci.yaml b/.github/workflows/cuda_ci.yaml deleted file mode 100644 index d87d184b..00000000 --- a/.github/workflows/cuda_ci.yaml +++ /dev/null @@ -1,61 +0,0 @@ -# Python package -# Create and test a Python package on multiple Python versions. -# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more: -# https://docs.microsoft.com/azure/devops/pipelines/languages/python - -name: Run tests (GPU installable) - -on: [push] - -jobs: - test: - - runs-on: ubuntu-20.04 - strategy: - matrix: - python-version: [3.8] - - steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python-version }} - - name: Get current date - id: date - run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}" - - name: Install nvcc - uses: Jimver/cuda-toolkit@v0.2.19 - id: cuda-toolkit - with: - cuda: '12.5.0' - - run: | - echo "Installed cuda version is: ${{steps.cuda-toolkit.outputs.cuda}}" - echo "Cuda install location: ${{steps.cuda-toolkit.outputs.CUDA_PATH}}" - nvcc -V - - name: Install Conda environment from environment.yml - uses: mamba-org/setup-micromamba@v1 - with: - micromamba-version: '1.4.6-0' - environment-file: environment.yml - # persist on the same day. - cache-environment-key: environment-${{ steps.date.outputs.date }} - cache-downloads-key: downloads-${{ steps.date.outputs.date }} - - name: Install and run_test.py - shell: bash -l {0} - run: | - python -m pip install --no-deps --ignore-installed . -vvv - cd test && python run_test.py - - ## For debugging - - name: Install debug version - if: failure() - shell: bash -l {0} - run: | - python setup.py build_ext --debug install - - name: Setup tmate session for interactive debugging - if: failure() - uses: mxschmitt/action-tmate@v3 - with: - limit-access-to-actor: true - detached: true diff --git a/src/Makefile b/src/Makefile index feac46ba..00719ef2 100644 --- a/src/Makefile +++ b/src/Makefile @@ -34,7 +34,7 @@ CUDAFLAGS +=-std=c++17 -Xcompiler -fPIC --cudart static --relocatable-device-cod ifdef GPU CXXFLAGS += -DGPU_AVAILABLE CUDAFLAGS += -gencode arch=compute_86,code=sm_86 - CUDA_LDFLAGS += -L/usr/local/cuda-11.2/lib64 + CUDA_LDFLAGS += -L${CUDA_HOME}/lib64 endif PYTHON_LIB = pp_sketchlib$(shell python3-config --extension-suffix)