文件
rocm-systems/samples/0_Intro/square
Ben Sander f95482c7c5 Add new hipdemangleatp and snapshot sample update for new functionality
Change-Id: Ie19c683b2b0bdfeb0c3fcf89444c2e21b7f606e7
2016-10-27 23:09:31 -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