-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run time detection of avx2 for conda packages. (#957)
* Build conda CPU packages with run-time detection of AVX2. * Add cudatoolkit 10.1 to conda list. * Default to sse4 on x86_64.
- Loading branch information
Lucas Hosseini
authored
Sep 20, 2019
1 parent
36ddba9
commit 3d0ece0
Showing
10 changed files
with
94 additions
and
294 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
# Build avx2 version | ||
CXXFLAGS="-mavx2 -mf16c" ./configure --with-cuda=$CUDA_ROOT --with-cuda-arch="$CUDA_ARCH" | ||
make -j $CPU_COUNT | ||
make -C python _swigfaiss_avx2.so | ||
make clean | ||
|
||
# Build vanilla version (no avx) | ||
./configure --with-cuda=$CUDA_ROOT --with-cuda-arch="$CUDA_ARCH" | ||
make -j $CPU_COUNT | ||
make -C python _swigfaiss.so | ||
|
||
make -C python build | ||
|
||
cd python | ||
make | ||
|
||
$PYTHON setup.py install --single-version-externally-managed --record=record.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
# Build avx2 version | ||
CXXFLAGS="-mavx2 -mf16c" ./configure --without-cuda | ||
make -j $CPU_COUNT | ||
make -C python _swigfaiss_avx2.so | ||
make clean | ||
|
||
# Build vanilla version (no avx) | ||
./configure --without-cuda | ||
make -j $CPU_COUNT | ||
make -C python _swigfaiss.so | ||
|
||
make -C python build | ||
|
||
cd python | ||
make | ||
|
||
$PYTHON setup.py install --single-version-externally-managed --record=record.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
สัรงใหม่