Skip to content

Commit

Permalink
Add configs for cuda-cutoff-small-abs-values
Browse files Browse the repository at this point in the history
  • Loading branch information
enp1s0 committed Sep 16, 2022
1 parent cb5a20b commit 6f9ada7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,26 @@ if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/cuda-exponent-distribution-statis
COMMAND_ERROR_IS_FATAL ANY)
endif()

if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/src/cuda-cutoff-small-abs-values/Makefile)
execute_process(COMMAND ${GIT_EXECUTABLE} submodule update --init --recursive -- ${dir}
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMAND_ERROR_IS_FATAL ANY)
endif()


foreach(library cublas)
set(lib_name culip_${library})
set(exp_lib_home ${CMAKE_CURRENT_SOURCE_DIR}/src/cuda-exponent-distribution-statistics)
set(cutoff_lib_home ${CMAKE_CURRENT_SOURCE_DIR}/src/cuda-cutoff-small-abs-values)
include_directories(${lib_name} PRIVATE ${exp_lib_home}/include ${exp_lib_home}/src/cutf/include)
include_directories(${lib_name} PRIVATE ${cutoff_lib_home}/include ${cutoff_lib_home}/src/cutf/include)
add_library(${lib_name} SHARED
${SRCDIR}/${library}.cu
${SRCDIR}/utils.cu
${SRCDIR}/utils.hpp
${SRCDIR}/params.hpp
${CMAKE_CURRENT_SOURCE_DIR}/src/cuda-exponent-distribution-statistics/src/main.cu
${exp_lib_home}/src/main.cu
${cutoff_lib_home}/src/main.cu
${HEADERS}
)

Expand Down

0 comments on commit 6f9ada7

Please sign in to comment.