Update README.md

[ROCm/hip commit: 1d74e7c05f]
このコミットが含まれているのは:
Aditya Avinash Atluri
2016-01-26 10:43:41 -05:00
コミット c0aa29d381
+4 -4
ファイルの表示
@@ -1,14 +1,14 @@
# square.md
# Square.md
Simple test which shows how to use hipify to port CUDA code to HIP. Covered in more detail in blog.
1. Add hip/bin path to the PATH :
export PATH=$PATH:[MYHIP]/bin
<code>export PATH=$PATH:[MYHIP]/bin</code>
2. hipify square.cu > square.cpp
2. Do <code>$ hipify square.cu > square.cpp </code>
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)
<code>vector_square(hipLaunchParm lp, T *C_d, const T *A_d, size_t N)</code>
(see square.hipref.cpp for the correct output after running hipify and the above manual step)