Dosyalar
rocm-systems/samples/0_Intro/square
Jason Tang 1c0d737e1f SWDEV-227909 - Add gcnArchName
Change-Id: Iea6d16b5d693dd0d900fa424d7a321c39315430e
2020-06-05 15:33:55 -04:00
..
2019-05-20 18:46:23 +03:00

Square.md

Simple test which shows how to use hipify-perl to port CUDA code to HIP.
See related blog that explains the example. Now it is even simpler and requires no manual modification to the hipified source code - just hipify and compile:

  1. Add hip/bin path to the PATH : export PATH=$PATH:[MYHIP]/bin

  2. $ make Make runs these steps. This can be performed on either CUDA or AMD platform: hipify-perl square.cu > square.cpp # convert cuda code to hip code hipcc square.cpp # compile into executable