From cbfa24bc87f5ecd7e24becd2f778c6852f97695b Mon Sep 17 00:00:00 2001 From: Marco Vogel Date: Thu, 20 Jul 2023 09:19:34 +0200 Subject: [PATCH] moved source code to src folder --- CMakeLists.txt | 10 +++++----- cannon_comp.cpp => src/cannon_comp.cpp | 0 cannon_no_comp.cpp => src/cannon_no_comp.cpp | 0 cudaMatrixMultiply.cu => src/cudaMatrixMultiply.cu | 0 cudaMatrixMultiply.h => src/cudaMatrixMultiply.h | 0 matrix_functions.h => src/matrix_functions.h | 0 ndzip_api.cc => src/ndzip_api.cc | 0 ndzip_api.h => src/ndzip_api.h | 0 8 files changed, 5 insertions(+), 5 deletions(-) rename cannon_comp.cpp => src/cannon_comp.cpp (100%) rename cannon_no_comp.cpp => src/cannon_no_comp.cpp (100%) rename cudaMatrixMultiply.cu => src/cudaMatrixMultiply.cu (100%) rename cudaMatrixMultiply.h => src/cudaMatrixMultiply.h (100%) rename matrix_functions.h => src/matrix_functions.h (100%) rename ndzip_api.cc => src/ndzip_api.cc (100%) rename ndzip_api.h => src/ndzip_api.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index bc91491..b019165 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) @@ -20,7 +20,7 @@ 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") @@ -28,11 +28,11 @@ target_include_directories(ndzip_api PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/ndzip/s 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") diff --git a/cannon_comp.cpp b/src/cannon_comp.cpp similarity index 100% rename from cannon_comp.cpp rename to src/cannon_comp.cpp diff --git a/cannon_no_comp.cpp b/src/cannon_no_comp.cpp similarity index 100% rename from cannon_no_comp.cpp rename to src/cannon_no_comp.cpp diff --git a/cudaMatrixMultiply.cu b/src/cudaMatrixMultiply.cu similarity index 100% rename from cudaMatrixMultiply.cu rename to src/cudaMatrixMultiply.cu diff --git a/cudaMatrixMultiply.h b/src/cudaMatrixMultiply.h similarity index 100% rename from cudaMatrixMultiply.h rename to src/cudaMatrixMultiply.h diff --git a/matrix_functions.h b/src/matrix_functions.h similarity index 100% rename from matrix_functions.h rename to src/matrix_functions.h diff --git a/ndzip_api.cc b/src/ndzip_api.cc similarity index 100% rename from ndzip_api.cc rename to src/ndzip_api.cc diff --git a/ndzip_api.h b/src/ndzip_api.h similarity index 100% rename from ndzip_api.h rename to src/ndzip_api.h