[PATCH] D49886: [test-suite] Add pathfinder kernel from Rodinia Benchmark

Matthias Braun via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 2 16:50:00 PDT 2018


MatzeB added inline comments.


================
Comment at: MultiSource/Benchmarks/Rodinia/pathfinder/CMakeLists.txt:1-6
+set(PROG pathfinder)
+list(APPEND CFLAGS -I${CMAKE_CURRENT_SOURCE_DIR}/../Common/)
+set(Source main.c pathfinderKernel.c ../Common/glibc_compat_rand.c)
+set(WORKDIR ${CMAKE_CURRENT_BINARY_DIR})
+set(HASH_PROGRAM_OUTPUT 1)
+llvm_multisource()
----------------
Note: I am currently cleaning up the test-suite cmake code a bit. This needs to be changed to:
```
llvm_multisource(pathfinder main.c pathfinderKernel.c ../Common/glibc_compat_rand.c)
```
(with the `set(PROG` and `set(Source` lines removed)
before committing.


================
Comment at: MultiSource/Benchmarks/Rodinia/pathfinder/CMakeLists.txt:4
+set(Source main.c pathfinderKernel.c ../Common/glibc_compat_rand.c)
+set(WORKDIR ${CMAKE_CURRENT_BINARY_DIR})
+set(HASH_PROGRAM_OUTPUT 1)
----------------
You can also drop the `set(WORKDIR` line if the benchmark isn't reading any files and doesn't care what directory it is running in.


https://reviews.llvm.org/D49886





More information about the llvm-commits mailing list