Skip to content

GPU Programming: Hands on session. CINI HPC Summer School 2023

Notifications You must be signed in to change notification settings

HicrestLaboratory/CINI-GPU-Summer-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CINI-GPU-Summer-2023

GPU Programming: Hands on session. CINI HPC Summer School 2023

Prefix Sum

The code could be launched with the following command line:

PrefixSum n v

The parameter n define the problem size: the vector on which the prefix sum is performed has dimension 2^n.

If you wanna print all the involved vectors, you can set the verbose parameter 'v' as 1, otherwise, it must be 0.

Matrix multiplication

The code could be launched with the following command line:

MatrixGemm_ex e v [CPU_flag = 1]

The parameter e defines the problem size: the total number of elements in the matrix is 2^e, this also means that 'e' must be even. Moreover, due to size reasons, 'e' must also be greater-equal than 12.

If you wanna print all the involved matrices, you can turn it off by putting the optional parameter 'CPU_flag' as 0.

Since the CPU computation for dimensions greater than 15 starts to become time expensive, this could be turned off by putting the optional parameter 'CPU_flag' as 0.

About

GPU Programming: Hands on session. CINI HPC Summer School 2023

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published