CandidateVectorSearch 1.7.2
Searching for peptide candidates using sparse matrix + matrix/vector multiplication.
|
This is a rough guide for compiling CandidateVectorSearch on macOS 14.4, which should generally work on most macOS versions running on arm64-based Apple systems.
The following dependencies are required for compilation:
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install gcc
To build the C++ library used for matrix multiplication the following steps are required:
VectorSearch
directory: cd VectorSearch
g++-13 -shared -I eigen-3.4.0 -fPIC -fopenmp -O3 -o VectorSearch.dll dllmainUnix.cpp
g++-13 -Wl,-ld_classic -shared -I eigen-3.4.0 -fPIC -fopenmp -O3 -o VectorSearch.dll dllmainUnix.cpp
To build the C# testing application the following steps need to be carried out:
DataLoader
directory: cd DataLoader
dotnet publish DataLoader.csproj --runtime osx-arm64 --self-contained --configuration Release
VectorSearch.dll
to the build directory of DataLoader
../DataLoader EigenSIntB 10000
.We provide compiled binaries in DataLoaderExecutable/macos_arm
and in the Releases
tab. Please again note that we only supply the compiled binaries for CPU-based search. Running the compiled binaries requires .NET 6.0 and g++.