Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

francois141/Efficient-SDDMM-CUDA-implementation

Repository files navigation

Introduction

The Sampled Dense-Dense Matrix Multiplication (SDDMM) represents a foundational operation crucial for numerous significant machine learning factor analysis algorithms. Among these algorithms are Alternating Least Squares (ALS), Latent Dirichlet Allocation (LDA), Sparse Factor Analysis (SFA), and Gama Poisson. In this repository, we present both our code and the comprehensive findings detailed in ourfinal report. Our focus lies on the development ofGPU-Dynamic, an efficient GPU-based implementation of the SDDMM kernel. Our solution boasts remarkable performance enhancements, surpassing current implementations found in Torch with notable speedups of up to 100x. Furthermore, our implementation delivers competitive outcomes when compared to DGL.

Dataset

At the bottom of this README is a representation of all matrices that we have used for evaluation. The matrices range different dimensions as well as different densities. All matrices originate from theSuiteSparse Matrix Collection and can be downloaded by executing theinstall_matrices.sh script.

How to run the code?

To run the code, you need to install LibTorch for C++ which cou can download fromhere. We recommend usingPyTorch >= 2.1.0 andCUDA >= 12.1. In addition you should havegcc >= 10.2.0 andcmake >= 3.21 installed.

Make sure to update therun_cmake.sh file by updating the path to yourlibtorch library. You can finally compile and run the code by executing

./run_cmake.sh./build/src/dphpc --K 32 --data_folder data/

Small matrices

MatrixRowsColsNon-ZeroDensityImage
Fluid65665618,9644.4%
Oil66664,356100%
Biochemical1,9221,9224,3350.1%
Circuit1,2201,2205,8600.39%
Heat1,7941,7947,7640.24%
Mass4204207,8604.45%
Adder1,8131,81311,2460.34%
Trackball25,50325,50315,5250.01%

Dense matrices

MatrixRowsColsNon-ZeroDensityImage
Human Gene 214,34014,34018,068,3888.8%
ND12k36,00036,00014,220,9461%
Mix29,95729,9571,990,9190.22%
Mecanics29,06729,0672,081,0630.24%
Power8,1408,1402,012,8333.03%
Combinatorics4,5625,7612,462,9709.37%
Stress25,71025,7103,749,5820.56%
Mouse45,10145,10128,967,2911.42%

Sparse Matrices

MatrixRowsColsNon-ZeroDensityImage
Email enron36,69236,692367,6620.027%
Boeing52,32952,3292,600,2950.09%
Boeing Diagonal217,918217,91811,524,4320.02%
Stiffness503,712503,71236,816,1700.014%
Semi conductor1,090,6641,090,66434,767,2070.0029%
VLSI1,453,9081,453,90837,475,6460.0017%
Stack overflow2,601,9772,601,97736,233,4500.00053%
Chip2,987,0122,987,01226,621,9830.00029%

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp