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
Cette révision appartient à :
1 Parent
5bf2a70382
révision
8f72a6993f
23 fichiers modifiés
+490
-12
Aucun fichier ne correspond à votre recherche
@@ -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
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur