Files
rocm-systems/projects/hip/samples/0_Intro/square
Maneesh Gupta d1e6c121f3 Fix square.cu to use cudaError_t instead of hipError_t
Change-Id: If3314910d1c03122741d3e0a45e14a4412c473b3


[ROCm/hip commit: 3f83673b04]
2016-05-12 10:13:07 +05:30
..
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