Files
rocm-systems/projects/hip/samples/0_Intro/square
Sun, Peng c5b6222d62 revert workaround for square sample and update doc on GGL
Change-Id: I731c68ca4111e7dc2e45bef51c4cad2c23fc81f8


[ROCm/hip commit: 329e2182d6]
2017-03-21 10:26:09 -05:00
..
2016-10-15 23:05:04 +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