da27fd2b09
1.Combine libamdhip64_static_base.a and libamdvdi_static.a into libamdhip64_static.a. 2.Let hipcc use -use-staticlib to link libamdhip64_static.a. 3.Add some samples for static lib. 4.Fix compiling failure of code object. Change-Id: Ic8c95228eb139058da8b5d66ba8439486154ca6f
Square.md
Simple test which shows how to use hipify to port CUDA code to HIP.
See related blog that explains the example.
Now it is even simpler and requires no manual modification to the hipified source code - just hipify and compile:
-
Add hip/bin path to the PATH :
export PATH=$PATH:[MYHIP]/bin -
$ makeMake runs these steps. This can be performed on either CUDA or AMD platform:hipify-perl square.cu > square.cpp# convert cuda code to hip codehipcc square.cpp# compile into executable