ROCm / HIP-Examples

Examples for HIP
199 stars 90 forks source link

[Question]-CMakeLists.txt file to understand compile and Link in HIP environment #13

Closed anilbommareddy closed 2 months ago

anilbommareddy commented 4 years ago

Is any reference link or document to understand on "CMakeLists.txt" to compile and link in HCC Environment

Example1: compile & link: hipcc hipcc -c example.cpp.cpp -o main.o [compile] hipcc main.o -o Main [link]

Example 2:

compile(hipcc) and link(g++): hipcc -c example.cpp -o main.o [compile] g++ -L/opt/rocm/lib -lhip_hcc main.o -o Main [link]

In above examples , compile and link done through command lines. it is need write in CMakeLists.txt

ppanchad-amd commented 2 months ago

@anilbommareddy Apologies for the lack of response. Do you still need assistance with this ticket? Thanks!

anilbommareddy commented 2 months ago

@ppanchad-amd thank you for the response . No assistance required on it .