CandidateVectorSearch 1.7.2
Searching for peptide candidates using sparse matrix + matrix/vector multiplication.
|
Prototype implementation to test C++/C# marshalling and the different matrix multiplication approaches. More...
Static Public Member Functions | |
static int | Benchmark (int nrCandidates, int nrSpectra, int topN, int batchSize, Random r) |
Function to run synthetic benchmarks of all the different matrix multiplication functions. | |
static int | Compare (int nrCandidates, int nrSpectra, int topN, int batchSize, Random r) |
Function to compare the results of all the different matrix multiplication functions. | |
static int | Cuda (int nrCandidates, int nrSpectra, int topN, int batchSize, Random r, bool batched, int batchMode) |
Wrapper for testing GPU-based matrix multiplication functions. | |
static void | Main (string[] args) |
Main function to be executed when calling the executable. The routine to be called depends on the commandline arguments passed to the function. The commandline call has to look like this: DataLoader.exe [(string)Mode][(int)NrCandidates][(int)NrSpectra][(int)TopN][(int)BatchSize]. | |
static int | DeterministicCompare () |
[DEPRECATED] Function for testing a simple matrix multiplication of a deterministic problem. Will not work with the current CandidateVectorSearch DLLs. | |
static int | Eigen (int nrCandidates, int nrSpectra, int topN, int batchSize, Random r, bool batched, bool sparse, bool useInt=false) |
Wrapper for testing CPU-based matrix multiplication functions. | |
Prototype implementation to test C++/C# marshalling and the different matrix multiplication approaches.
Definition at line 6 of file Benchmark.cs.
|
static |
Function to run synthetic benchmarks of all the different matrix multiplication functions.
nrCandidates | The number of candidates that should be simulated. |
nrSpectra | The number of spectra to be simulated. |
topN | The number of top hits returned for every spectrum. |
batchSize | The number of spectra processed at once for matrix * matrix approaches. |
r | A random number generator used for simulation. |
Definition at line 17 of file Benchmark.cs.
|
static |
Function to compare the results of all the different matrix multiplication functions.
nrCandidates | The number of candidates that should be simulated. |
nrSpectra | The number of spectra to be simulated. |
topN | The number of top hits returned for every spectrum. |
batchSize | The number of spectra processed at once for matrix * matrix approaches. |
r | A random number generator used for simulation. |
Definition at line 17 of file Compare.cs.
|
static |
Wrapper for testing GPU-based matrix multiplication functions.
nrCandidates | The number of candidates that should be simulated. |
nrSpectra | The number of spectra to be simulated. |
topN | The number of top hits returned for every spectrum. |
batchSize | The number of spectra processed at once for matrix * matrix approaches. |
r | A random number generator used for simulation. |
batched | Whether to run a vector * matrix (false) or matrix * matrix (true) approach. |
batchMode | Which matrix * matrix approach to use if batched = true. If batchMode = 2 uses sparse matrix * dense matrix approach, otherwise sparse matrix * sparse matrix approach is used. |
|
static |
[DEPRECATED]
Function for testing a simple matrix multiplication of a deterministic problem.
Will not work with the current CandidateVectorSearch DLLs.
Definition at line 14 of file DeterministicCompare.cs.
|
static |
Wrapper for testing CPU-based matrix multiplication functions.
nrCandidates | The number of candidates that should be simulated. |
nrSpectra | The number of spectra to be simulated. |
topN | The number of top hits returned for every spectrum. |
batchSize | The number of spectra processed at once for matrix * matrix approaches. |
r | A random number generator used for simulation. |
batched | Whether to run a vector * matrix (false) or matrix * matrix (true) approach. |
sparse | Whether to run a sparse * dense (false) or sparse * sparse (true) approach. |
useInt | Whether or not to convert floating point numbers to integers before multiplication. |
|
static |
Main function to be executed when calling the executable.
The routine to be called depends on the commandline arguments passed to the function.
The commandline call has to look like this:
DataLoader.exe [(string)Mode][(int)NrCandidates][(int)NrSpectra][(int)TopN][(int)BatchSize].
args | Array of commandline arguments. |
Definition at line 43 of file DataLoader.cs.