Improve performance of the transposition of CSR matrices #798
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related Issue: #794
Description
This PR implements the transposition of CSR matrix as done by Scipy: https://github.com/scipy/scipy/blob/8a64c938ddf1ae4c02a08d2c5e38daeb8d061d38/scipy/sparse/sparsetools/csr.h#L419-L462
The objective is to improve the performance of the
tranpose
operation for sparse (CSR) matrices.Performance
current
is the current implementation of transpose of CSR matricesnew
is this scipy-based implementationSTATIC
andMFSC
)Reproduce
The experiments have been executed on a cluster with Slurm.
The workflow is managed by Snakemake (can be installed via
pip install snakemake
).The software environment is managed by Singularity and the
daphne-dev
Docker imageAfter copying the following files on your cluster and
chmod
ing and adaptingsbatch.bash
to your cluster, you can start the workflow:where
NUMBER_OF_TASKS_IN_PARALLEL
is the maximum number of Snakemake tasks in parallel (and thus Slurm jobs, because the workflow submits Slurm jobs).--latency-wait
is in case there is latency on the NFS of the cluster.At the completion of the workflow, the file
data/all.csv
contains all the experimental data with the following structureSnakefile
bench.daph
sbatch.bash