Skip to content

Commit

Permalink
Delete the example/ directory and move triad to playground. (harvard-…
Browse files Browse the repository at this point in the history
…acc#40)

The example directory is long out of date and doesn't work anymore.
Also, update the README to mention that WORKLOAD also needs to be
updated.

Fixes issue harvard-acc#39.
  • Loading branch information
xyzsam authored Nov 28, 2020
1 parent f553bde commit 89f0fec
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 56 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ set(CMAKE_CXX_COMPILER ${CLANGXX})
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/full-trace")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/profile-func")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/ast-pass")
add_subdirectory("${CMAKE_CURRENT_SOURCE_DIR}/example")
6 changes: 0 additions & 6 deletions example/CMakeLists.txt

This file was deleted.

5 changes: 0 additions & 5 deletions example/triad/CMakeLists.txt

This file was deleted.

42 changes: 0 additions & 42 deletions example/triad/llvm_compile.py

This file was deleted.

3 changes: 2 additions & 1 deletion playground/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# This compiles all .c files located in this directory.
export WORKLOAD=top_level
TOP_LEVEL ?= top_level
export WORKLOAD=$(TOP_LEVEL)

include Makefile.tracer
8 changes: 7 additions & 1 deletion playground/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ The below will build trace binary for test.c.
```
make trace-binary SUFFIX=c
```
To build for other files, change the EXEC variable.
To build for other files, change the EXEC variable. EXEC is the name of the
file.
```
make trace-binary EXEC=multithreading
```
You may also need to change the TOP_LEVEL variable, which sets the entry
function of your accelerator. For the triad example, it would be:
```
make trace-binary EXEC=triad TOP_LEVEL=triad SUFFIX=c
```
File renamed without changes.
File renamed without changes.

0 comments on commit 89f0fec

Please sign in to comment.