Files
rocm-systems/samples/0_Intro/square
Aditya Atluri f86f3b3b33 added new field to hipDeviceProp_t structure gcnArch.
1. It is an integer containing gfx values 701, 801, 802, 803
2. On NV path, it is zero

Change-Id: I2b4c7f48981d0214d8c6b1905d2cc85b16203419
2017-03-07 11:24:32 -06: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