Skip to content
/ quip Public

Header files that translate between Cuda and Hip.

License

Notifications You must be signed in to change notification settings

trey-ornl/quip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quip

Quip provides a set of header files that translate between Cuda and Hip. The headers are generated from Hip documentation.

The headers are intended to allow programmers to mix Cuda and Hip code and compile for either NVidia or AMD GPUs. The primary restriction is that the Cuda code must use features supported in Hip, and vice versa.

To compile for NVidia GPUs, add the following argument to your nvcc compile line, where <quip-path> is the path to the Quip directory.

-I<quip-path>/hip2cuda

To compile for AMD GPUs, add the following argument to your hipcc compile line.

-I<quip-path>/cuda2hip

To regenerate the header files, update the local clone of the HIP repo.

$ cd <quip-path>/HIP
$ git pull

Then run the generation script.

$ cd <quip-path>
$ ./quip.py

About

Header files that translate between Cuda and Hip.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published