파일
rocm-systems/samples/0_Intro/square
Maneesh Gupta 52e320f396 Replace hipLaunchKernel -> hipLaunchKernelGGL
Change-Id: I4d99009e1199811d417becf1e1b934ec4d4e30be
2018-10-17 14:32:25 +05:30
..
2017-12-05 11:54:50 +05:30

Square.md

Simple test which shows how to use hipify 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