A course in using hipfort for accelerated computing
This repository comes with examples that you can test drive on your own GPU accelerated systems (AMD or Nvidia). To get started, you will need
After you clone this repository and navigate into its directory on your local workstation,
- Create a build directory
mkdir build/
- Run
cmake
, specifying thehipfc
wrapper as the Fortran compiler
FC=hipfc cmake -DCMAKE_INSTALL_PREFIX=${HOME}/.local/ ../
Note
The CMAKE_INSTALL_PREFIX
variable sets the destination for the example applications. The above example will install binaries at ${HOME}/.local/bin
- Build the examples
make
- Install the examples
make install
- Add the binary and library paths to your
PATH
andLD_LIBRARY_PATH
environment variables
export PATH=$PATH:${HOME}/.local/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${HOME}/.local/lib