Skip to content

Commit

Permalink
moved source code to src folder
Browse files Browse the repository at this point in the history
  • Loading branch information
vogma committed Jul 20, 2023
1 parent 4dde6d5 commit cbfa24b
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ find_package(CUDAToolkit REQUIRED)
find_package(Boost REQUIRED COMPONENTS thread program_options)

#cuda library for matrix multiplications
add_library(dgemm_cuda cudaMatrixMultiply.cu cudaMatrixMultiply.h)
target_include_directories(dgemm_cuda PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
add_library(dgemm_cuda src/cudaMatrixMultiply.cu src/cudaMatrixMultiply.h)
target_include_directories(dgemm_cuda PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src")

#ndzip build options
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
Expand All @@ -20,19 +20,19 @@ add_subdirectory(ndzip)
target_compile_options(ndzip PUBLIC -Wno-unused-parameter)

#shared library for ndzip compression and decompression calls
add_library(ndzip_api SHARED ndzip_api.h ndzip_api.cc)
add_library(ndzip_api SHARED src/ndzip_api.h src/ndzip_api.cc)
set_property(TARGET ndzip_api PROPERTY POSITION_INDEPENDENT_CODE ON)
target_compile_features(ndzip_api PRIVATE cxx_std_17)
target_include_directories(ndzip_api PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/ndzip/include")
target_include_directories(ndzip_api PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/ndzip/src")
target_link_libraries(ndzip_api ndzip ndzip-cuda)

#implementation of cannons algorithm
add_executable(Cannons_Algorithm cannon_no_comp.cpp matrix_functions.h cudaMatrixMultiply.h)
add_executable(Cannons_Algorithm src/cannon_no_comp.cpp src/matrix_functions.h src/cudaMatrixMultiply.h)
target_compile_features(Cannons_Algorithm PRIVATE cxx_std_17)
set_property(TARGET Cannons_Algorithm PROPERTY POSITION_INDEPENDENT_CODE ON)

add_executable(Cannons_Algorithm_Comp cannon_comp.cpp matrix_functions.h cudaMatrixMultiply.h)
add_executable(Cannons_Algorithm_Comp src/cannon_comp.cpp src/matrix_functions.h src/cudaMatrixMultiply.h)
target_compile_features(Cannons_Algorithm_Comp PRIVATE cxx_std_17)
set_property(TARGET Cannons_Algorithm_Comp PROPERTY POSITION_INDEPENDENT_CODE ON)
target_include_directories(Cannons_Algorithm_Comp PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/ndzip/src" "${CMAKE_CURRENT_SOURCE_DIR}/ndzip/include")
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit cbfa24b

Please sign in to comment.