-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'improve-testing' into 'master'
Improve Testing See merge request pc2/HPCC_FPGA!11
- Loading branch information
Showing
137 changed files
with
5,235 additions
and
5,289 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -6,3 +6,4 @@ cmake-* | |
build/* | ||
.idea | ||
.venv | ||
docs/* |
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,19 +1,32 @@ | ||
|
||
include_directories(../../../extern/cxxopts/include ../../../shared) | ||
include_directories(${CMAKE_BINARY_DIR}/src/common) | ||
add_subdirectory(../../../shared ${CMAKE_BINARY_DIR}/lib/hpccbase) | ||
set(HOST_SOURCE execution_default.cpp fft_benchmark.cpp) | ||
|
||
set(HOST_SOURCE execution_default.cpp main.cpp ../../../shared/setup/fpga_setup.cpp fft_functionality.cpp) | ||
set(HOST_EXE_NAME FFT) | ||
set(LIB_NAME fft_lib) | ||
|
||
if (INTELFPGAOPENCL_FOUND) | ||
include_directories(${IntelFPGAOpenCL_INCLUDE_DIRS}) | ||
add_executable(FFT_intel ${HOST_SOURCE}) | ||
target_compile_definitions(FFT_intel PRIVATE -DINTEL_FPGA) | ||
target_link_libraries(FFT_intel ${IntelFPGAOpenCL_LIBRARIES}) | ||
add_library(${LIB_NAME}_intel STATIC ${HOST_SOURCE}) | ||
target_include_directories(${LIB_NAME}_intel PRIVATE ${HPCCBaseLibrary_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/src/common ${IntelFPGAOpenCL_INCLUDE_DIRS}) | ||
target_include_directories(${LIB_NAME}_intel PUBLIC ${CMAKE_SOURCE_DIR}/src/host) | ||
add_executable(${HOST_EXE_NAME}_intel main.cpp) | ||
target_link_libraries(${LIB_NAME}_intel "${IntelFPGAOpenCL_LIBRARIES}" "${OpenMP_CXX_FLAGS}") | ||
target_link_libraries(${LIB_NAME}_intel hpcc_fpga_base) | ||
target_link_libraries(${HOST_EXE_NAME}_intel ${LIB_NAME}_intel) | ||
target_compile_definitions(${LIB_NAME}_intel PRIVATE -DINTEL_FPGA) | ||
target_compile_options(${LIB_NAME}_intel PRIVATE "${OpenMP_CXX_FLAGS}") | ||
add_test(NAME test_intel_host_executable COMMAND $<TARGET_FILE:${HOST_EXE_NAME}_intel> -h) | ||
endif() | ||
|
||
if (Vitis_FOUND) | ||
include_directories(${Vitis_INCLUDE_DIRS}) | ||
add_executable(FFT_xilinx ${HOST_SOURCE}) | ||
target_compile_definitions(FFT_xilinx PRIVATE -DXILINX_FPGA) | ||
target_link_libraries(FFT_xilinx ${Vitis_LIBRARIES}) | ||
add_library(${LIB_NAME}_xilinx STATIC ${HOST_SOURCE}) | ||
target_include_directories(${LIB_NAME}_xilinx PRIVATE ${HPCCBaseLibrary_INCLUDE_DIRS} ${CMAKE_BINARY_DIR}/src/common ${Vitis_INCLUDE_DIRS}) | ||
target_include_directories(${LIB_NAME}_xilinx PUBLIC ${CMAKE_SOURCE_DIR}/src/host) | ||
add_executable(${HOST_EXE_NAME}_xilinx main.cpp) | ||
target_link_libraries(${LIB_NAME}_xilinx ${Vitis_LIBRARIES} "${OpenMP_CXX_FLAGS}") | ||
target_link_libraries(${LIB_NAME}_xilinx hpcc_fpga_base) | ||
target_link_libraries(${HOST_EXE_NAME}_xilinx ${LIB_NAME}_xilinx) | ||
target_compile_definitions(${LIB_NAME}_xilinx PRIVATE -DXILINX_FPGA) | ||
target_compile_options(${LIB_NAME}_xilinx PRIVATE "${OpenMP_CXX_FLAGS}") | ||
add_test(NAME test_xilinx_host_executable COMMAND $<TARGET_FILE:${HOST_EXE_NAME}_xilinx> -h) | ||
endif() |
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
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
Oops, something went wrong.