Skip to content

Laplace solver running on GPU using CUDA, with CPU version for comparison

License

Notifications You must be signed in to change notification settings

kyleniemeyer/laplace_gpu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laplace_gpu

Laplace solver running on GPU using CUDA, with CPU version for comparison. In addition, the CPU version contains support for OpenMP and OpenACC.

Usage

Change the problem size by modifying NUM in laplace_cpu.c and laplace_gpu.cu. To make all the executables (CPU, OpenMP, OpenACC, and GPU) type make.

To run each version, simply type

$ ./laplace_cpu
$ ./laplace_gpu
$ ./laplace_omp
$ ./laplace_acc

Requirements

The makefile is set up to use gcc to compile the CPU version, nvcc (part of CUDA) to make the GPU version, and 'pgcc' (part of the Portland Group's Accelerator compilers) to make the OpenMP and OpenACC versions. gcc may also be used to make the OpenMP version by changing the appropriate line in the makefile.

Misc

The most up-to-date version of laplace_gpu can be found at the GitHub repository on GitHub.

License

laplace_gpu is released under the modified BSD license, see LICENSE for details.

Author

Created by Kyle Niemeyer. Email address: kyle.niemeyer@gmail.com

About

Laplace solver running on GPU using CUDA, with CPU version for comparison

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages