Files
rocm-systems/samples/0_Intro/square
Aditya Atluri 4911876371 added vimrc for current project
1. Added vimrc config file for HIP
2. Corrected square sample indent

Change-Id: I3e1d92403571148fe6825db6ad63ad925ae69519
2016-09-15 11:40:17 -05:00
..
2016-04-18 10:15:35 +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.

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

  2. Do $ hipify square.cu > square.cpp

  3. Manually edit square.cpp to add hipLaunchParms lp to kernel parms: vector_square(hipLaunchParm lp, T *C_d, const T *A_d, size_t N)

    (see square.hipref.cpp for the correct output after running hipify and the above manual step)

  4. make