Skip to content

Commit

Permalink
Make USE_SVM a global option
Browse files Browse the repository at this point in the history
  • Loading branch information
Marius Meyer committed May 28, 2020
1 parent c4fac1d commit 2ba4b94
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion RandomAccess/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ set(PARALLEL_MEM_ACCESSES 1 CACHE STRING "Unrolling factor that is used for all
set(NUM_REPLICATIONS 4 CACHE STRING "Number of times the kernels will be replicated")
set(DEVICE_BUFFER_SIZE 1 CACHE STRING "Buffer size in number of values that is used within the single kernel implementation.")
set(COMBINE_LOOPS Yes CACHE BOOL "If enabled this will combine the address calculation loop and the load darta loop to a single loop. This can improve the performance when all loops are running sequentially")
set(USE_SVM No CACHE BOOL "Use coarse grained SVM instead of loading the buffer on the FPGA before execution. Device needs to support this feature.")

set(DATA_TYPE long)
set(HOST_DATA_TYPE cl_ulong)
Expand Down
1 change: 0 additions & 1 deletion STREAM/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ set(GLOBAL_MEM_UNROLL 1 CACHE STRING "Unrolling factor that is used for all loop
set(NUM_REPLICATIONS 4 CACHE STRING "Number of times the kernels will be replicated")
set(DEVICE_BUFFER_SIZE 512 CACHE STRING "Buffer size in number of values that is used within the single kernel implementation.")
set(INNER_LOOP_BUFFERS ON CACHE BOOL "Put the local memory buffers inside the outer loop in the kernel code")
set(USE_SVM No CACHE BOOL "Use SVM pointers instead of creating buffers on the board and transferring the data there before execution.")

# Set the data type since optional vector types are used
set(DATA_TYPE float)
Expand Down
1 change: 1 addition & 0 deletions cmake/general_benchmark_build_setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ set(DEFAULT_REPETITIONS 10 CACHE STRING "Default number of repetitions")
set(DEFAULT_DEVICE -1 CACHE STRING "Index of the default device to use")
set(DEFAULT_PLATFORM -1 CACHE STRING "Index of the default platform to use")
set(USE_OPENMP ${USE_OPENMP} CACHE BOOL "Use OpenMP in the host code")
set(USE_SVM No CACHE BOOL "Use SVM pointers instead of creating buffers on the board and transferring the data there before execution.")

# Set the used data type
if (NOT DATA_TYPE)
Expand Down

0 comments on commit 2ba4b94

Please sign in to comment.