Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • wslda wslda
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • wtools
  • wsldawslda
  • Wiki
  • Converting the toolkit to HIP

Converting the toolkit to HIP · Changes

Page history
Update Converting the toolkit to HIP authored Feb 13, 2026 by Gabriel Wlazłowski's avatar Gabriel Wlazłowski
Hide whitespace changes
Inline Side-by-side
Converting-the-toolkit-to-HIP.md
View page @ 1312918c
# Hipify the code
To be able to use the toolkit with AMD ROCm you need to first hipify the code.
Use provided script
To use the toolkit with AMD ROCm, you need to first hipify the code.
Use the provided script
[hipify.sh](https://gitlab.fizyka.pw.edu.pl/wtools/wslda/-/blob/public/hipify.sh).
The script uses `hipify-perl` conversion tool. You can download it from [here](https://github.com/ROCm-Developer-Tools/HIPIFY).
The script uses the `hipify-perl` conversion tool. You can download it from [here](https://github.com/ROCm-Developer-Tools/HIPIFY).
In the script you need to set correctly invocation of the `hipify-perl` tool.
```bash
# SETTINGS
HIPIFY_CMD="hipify-perl -hip-kernel-execution-syntax"
```
The script must be executed from the main folder of W-SLDA Toolkit:
The script must be executed from the main folder of the W-SLDA Toolkit:
```
gawlazlo@uan02:/project/project_465000150/share/wslda> ./hipify.sh
---> Converting WSLDA to HIP environment
......@@ -23,7 +23,7 @@ gawlazlo@uan02:/project/project_465000150/share/wslda> ./hipify.sh
```
# Compiling the code with HIP
In order to activate compilation with `hipcc` compiler (analog of `nvcc` compiler) add to Makefile flags `HIPCC` and `HIPCCFLAGS`. For example:
In order to activate compilation with the `hipcc` compiler (analog of the `nvcc` compiler), add to the Makefile flags `HIPCC` and `HIPCCFLAGS`. For example:
```make
# COMPILERS
CXX=cc
......@@ -38,7 +38,7 @@ OBJDIR=./obj/
BINDIR=./
# COMPILER FLAGS
# You may need to add also info about the platform
# You may also need to add info about the platform
# and path to HIP include files for C compiler
CFLAGS=-D__HIP_PLATFORM_AMD__ -I$(HIP_PATH)/include
# NVCCFLAGS= commented intentionally, it is replaced by HIPCCFLAGS below
......
Clone repository

Content of Documentation
Official webpage
W-BSK Toolkit