test: add tests to validate cache/mem blocks
To validate cache and memory blocks profiling, this patch prepares tests to profile dedicated kernels using specified counters, to compare the profiled results against expected ones, and further show the test is a fail or pass. Tests here are focusing on cache hit/miss, memory fetch/write size. Change-Id: Icbc8096a6e15256dec66297597a57c7665a533b8
このコミットが含まれているのは:
1 親
b677eebfd7
コミット
8b445d2c00
8ファイル変更
+725
検索条件に一致するファイルはありません
@@ -0,0 +1,19 @@
|
||||
HIP_PATH?= $(wildcard /opt/rocm/hip)
|
||||
ifeq (,$(HIP_PATH))
|
||||
HIP_PATH=../../..
|
||||
endif
|
||||
HIP_PLATFORM=$(shell $(HIP_PATH)/bin/hipconfig --platform)
|
||||
HIPCC=$(HIP_PATH)/bin/hipcc
|
||||
|
||||
# specify .cpp filename here
|
||||
filename=cache
|
||||
|
||||
SOURCES=$(filename).cpp
|
||||
|
||||
all: $(filename)
|
||||
|
||||
$(filename): $(SOURCES)
|
||||
$(HIPCC) $(CXXFLAGS) $(SOURCES) -o $@
|
||||
|
||||
clean:
|
||||
rm -f *.o *.out $(filename)
|
||||
新しいイシューから参照
ユーザーをブロックする