Make samples support cmake
Only cmake can support static lib of hip rt. Thus samples will support static lib of hip rt when this is done. Change-Id: I70e8d06e85084369a035b42c5d1d56287c874ac9
This commit is contained in:
1 orang tua
5bf2a70382
melakukan
8f72a6993f
23 files changed
+490
-12
No files matched your search
@@ -11,7 +11,7 @@ else
|
||||
SOURCES=square.cpp
|
||||
endif
|
||||
|
||||
all: square.out square.out.static
|
||||
all: square.out
|
||||
|
||||
# Step
|
||||
square.cpp: square.cu
|
||||
@@ -20,8 +20,5 @@ square.cpp: square.cu
|
||||
square.out: $(SOURCES)
|
||||
$(HIPCC) $(CXXFLAGS) $(SOURCES) -o $@
|
||||
|
||||
square.out.static: $(SOURCES)
|
||||
$(HIPCC) -use-staticlib $(CXXFLAGS) $(SOURCES) -o $@
|
||||
|
||||
clean:
|
||||
rm -f *.o *.out *.out.static square.cpp
|
||||
rm -f *.o *.out square.cpp
|
||||
Reference in new issue
Block a user