Skip to content

pierric/rocm-hip-hs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Haskell CI

Haskell bindings to ROCm HIP Runtime

This repository provides a Haskell library binding the key interfaces to HIP runtimes.

setup

ROCm is pre-installed in /opt/rocm. If not, edit the cabal file to specify the correct path.

Run ghcup run --cabal 3.14 --ghc 9.12 cabal -- build to build the library.

Example

test/saxy.hip is an example of HIP kernel.

Compile it with the command hipcc -O3 --genco --offload-arch=gfx1100 test/saxpy.hip -o test/saxpy.hsaco. You may need to adjust the arch to the right one for your GPU at hand.

app/Main.hs is an example Haskell program that call the kernel.

About

Haskell bindings for ROCm HIP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors