This repository has been archived by the owner on Mar 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Missing file in ROCm Debugger v1.3 November 2016 release
- Loading branch information
Perhaad Mistry
committed
Nov 16, 2016
1 parent
ff8e6a2
commit 41a2545
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright (c) 2015 Advanced Micro Devices, Inc. All rights reserved. | ||
|
||
makefile: all | ||
all: MatrixMul | ||
|
||
SDKINC=../../include/ | ||
|
||
HSADIR=/opt/rocm/hsa/ | ||
HSAINC=$(HSADIR)include/hsa | ||
HSALIB=$(HSADIR)lib/ | ||
|
||
LIBLINE=-L$(HSALIB) -l:libhsa-runtime64.so.1 | ||
|
||
CC=g++ | ||
|
||
TESTCOMMON=../Common | ||
CFLAGS= -g -D_DEBUG -std=c++11 -m64 -Werror -I$(HSAINC) -I$(TESTCOMMON) -I$(SDKINC) | ||
LDFLAGS= -g -m64 -Werror -Wl,--unresolved-symbols=ignore-in-shared-libs | ||
|
||
OBJFLAGS = -c $(CFLAGS) | ||
|
||
SOURCES=\ | ||
$(TESTCOMMON)/HSAResourceManager.cpp\ | ||
$(TESTCOMMON)/HSAExtensionFinalizer.cpp\ | ||
MatrixMul.cpp | ||
|
||
OBJECTS=$(SOURCES:.cpp=.o) | ||
|
||
DEPS := $(OBJECTS:.o=.d) | ||
|
||
MatrixMul : $(OBJECTS) | ||
$(CC) $(LDFLAGS) $(OBJECTS) $(LIBLINE) -o MatrixMul | ||
|
||
.cpp.o: | ||
$(CC) -c -MMD $(CFLAGS) $< -o $@ | ||
|
||
clean: | ||
rm -f $(TESTCOMMON)/*.o $(TESTCOMMON)/*.d | ||
rm -f *.o *.d | ||
rm -f MatrixMul | ||
|
||
-include $(DEPS) |