Skip to content

Commit

Permalink
Fixed cmake and submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
afender committed Sep 13, 2019
1 parent e8b37aa commit 273b932
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
path = cpp/thirdparty/cnmem
url = https://github.com/NVIDIA/cnmem.git
[submodule "cpp/nvgraph/cpp/thirdparty/cub"]
path = cpp/nvgraph/cpp/thirdparty/cub
path = cpp/thirdparty/cub
url = https://github.com/NVlabs/cub.git
[submodule "cpp/nvgraph/external/cusp"]
path = cpp/nvgraph/external/cusp
path = external/cusp
url = https://github.com/cusplibrary/cusplibrary.git
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ It is easy to install nvGraph from source. As a convenience, a `build.sh` script
git clone https://github.com/rapidsai/nvgraph.git
cd nvgraph
export CUDA_ROOT=/usr/local/cuda
./build.sh # build the nvGraph library and install it to $CUDA_ROOT
./build.sh # build the nvGraph library and install it to $CUDA_ROOT (you may need to add the sudo prefix)
```


Expand Down
4 changes: 4 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ if(CMAKE_COMPILER_IS_GNUCXX)
endif(CMAKE_CXX11_ABI)
endif(CMAKE_COMPILER_IS_GNUCXX)

if(NOT DEFINED NVGRAPH_LIGHT)
set(NVGRAPH_LIGHT True)
endif(NOT DEFINED NVGRAPH_LIGHT)

###################################################################################################
# - cmake modules ---------------------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion cpp/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ project(CUDF_TESTS LANGUAGES C CXX CUDA)
function(ConfigureTest CMAKE_TEST_NAME CMAKE_TEST_SRC)
add_executable(${CMAKE_TEST_NAME} ${CMAKE_TEST_SRC})
set_target_properties(${CMAKE_TEST_NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_link_libraries(${CMAKE_TEST_NAME} gmock gtest gmock_main gtest_main pthread nvgraph_rapids cublas cusparse curand cusolver cudart)
target_link_libraries(${CMAKE_TEST_NAME} gmock gtest gmock_main gtest_main pthread nvgraph cublas cusparse curand cusolver cudart)
set_target_properties(${CMAKE_TEST_NAME} PROPERTIES
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/gtests")
add_test(NAME ${CMAKE_TEST_NAME} COMMAND ${CMAKE_TEST_NAME})
Expand Down

0 comments on commit 273b932

Please sign in to comment.