Skip to content

Commit cfa6a49

Browse files
authored
Remove the mismatched version warning (#97)
* Remove the mismatched version warning * Add setuptools to requirements * Two attempts at nvcc CI * Two fix attempts * Try newer cuda version * Replace hardcoded CUDA path in Makefile * Unpin cuda in environment.yaml * Remove CUDA_HOME export in workflow * Still seem to need explicit CUDA_HOME in with 12.6 Goes in azure config which is better at least
1 parent 336c0d6 commit cfa6a49

File tree

6 files changed

+11
-16
lines changed

6 files changed

+11
-16
lines changed

.github/workflows/azure_ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Add steps that analyze code, save the dist with the build record, publish to a PyPI-compatible index, and more:
44
# https://docs.microsoft.com/azure/devops/pipelines/languages/python
55

6-
name: Run tests
6+
name: Run tests (CPU)
77

88
on: [push]
99

azure-pipelines.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ trigger:
44
- master
55

66
pool:
7-
vmImage: 'ubuntu-20.04'
7+
vmImage: 'ubuntu-22.04'
88
strategy:
99
matrix:
1010
Python38:
@@ -24,12 +24,10 @@ steps:
2424
displayName: Add conda to PATH
2525

2626
- script: |
27-
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/cuda-ubuntu1804.pin
28-
sudo mv cuda-ubuntu1804.pin /etc/apt/preferences.d/cuda-repository-pin-600
29-
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
30-
sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/ /"
27+
wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb
28+
sudo dpkg -i cuda-keyring_1.1-1_all.deb
3129
sudo apt-get update
32-
sudo apt-get -y install cuda=11.2.2-1
30+
sudo apt-get -y install cuda-toolkit
3331
displayName: Install nvcc
3432

3533
- bash: conda env create --file environment.yml
@@ -39,7 +37,7 @@ steps:
3937
# pushd src && make && make install && popd
4038
- script: |
4139
source activate pp_env
42-
export CUDA_HOME=/usr/local/cuda-11.2
40+
export CUDA_HOME=/usr/local/cuda-12.6
4341
export PATH=${CUDA_HOME}/bin${PATH:+:${PATH}}
4442
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
4543
export SKETCHLIB_INSTALL=azure
@@ -48,7 +46,7 @@ steps:
4846

4947
- script: |
5048
source activate pp_env
51-
export CUDA_HOME=/usr/local/cuda-11.2
49+
export CUDA_HOME=/usr/local/cuda-12.6
5250
export PATH=${CUDA_HOME}/bin${PATH:+:${PATH}}
5351
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
5452
cd test && python run_test.py

environment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ channels:
77
dependencies:
88
- python
99
- pip
10+
- setuptools
1011
- numpy
1112
- scipy
1213
- docopt
@@ -21,4 +22,4 @@ dependencies:
2122
- openblas
2223
- libgfortran-ng
2324
- nvcc_linux-64
24-
- cudatoolkit==11.2 # This is pinned due to version install on azure, see azure-pipelines.yml
25+
- cudatoolkit # This is pinned due to version install on azure, see azure-pipelines.yml

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ numpy
33
pybind11
44
scipy
55
docopt
6+
setuptools

src/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ CUDAFLAGS +=-std=c++17 -Xcompiler -fPIC --cudart static --relocatable-device-cod
3434
ifdef GPU
3535
CXXFLAGS += -DGPU_AVAILABLE
3636
CUDAFLAGS += -gencode arch=compute_86,code=sm_86
37-
CUDA_LDFLAGS += -L/usr/local/cuda-11.2/lib64
37+
CUDA_LDFLAGS += -L${CUDA_HOME}/lib64
3838
endif
3939

4040
PYTHON_LIB = pp_sketchlib$(shell python3-config --extension-suffix)

src/sketchlib_bindings.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ NumpyMatrix queryDatabase(const std::string &ref_db_name,
9999
throw std::runtime_error(
100100
"Extracting Jaccard distances not supported on GPU");
101101
}
102-
if (!same_db_version(ref_db_name, query_db_name)) {
103-
std::cerr << "WARNING: versions of input databases sketches are different,"
104-
" results may not be compatible"
105-
<< std::endl;
106-
}
107102

108103
std::vector<Reference> ref_sketches =
109104
load_sketches(ref_db_name, ref_names, kmer_lengths, false);

0 commit comments

Comments
 (0)