Skip to content

Commit

Permalink
first build
Browse files Browse the repository at this point in the history
  • Loading branch information
mcordery committed Dec 18, 2024
1 parent 6d1ea3f commit 720b8b2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ VERBOSE_FLAG=""
CMAKE_VERBOSE_OPTION=""
BUILD_TYPE=Release
INSTALL_TARGET="--target install"
BUILD_CPP_TESTS=ON
BUILD_CPP_TESTS=OFF
BUILD_CPP_MG_TESTS=OFF
BUILD_CPP_MTMG_TESTS=OFF
BUILD_ALL_GPU_ARCH=0
Expand Down Expand Up @@ -236,7 +236,7 @@ if buildDefault || hasArg libcugraph || hasArg all; then
fi
else
if (( ${BUILD_ALL_GPU_ARCH} == 0 )); then
CUGRAPH_CMAKE_CUDA_ARCHITECTURES="NATIVE"
CUGRAPH_CMAKE_CUDA_ARCHITECTURES="gfx1100"
echo "Building for the architecture of the GPU in the system..."
else
CUGRAPH_CMAKE_CUDA_ARCHITECTURES="RAPIDS"
Expand Down
2 changes: 2 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ set_target_properties(cugraph
PROPERTIES BUILD_RPATH "\$ORIGIN"
INSTALL_RPATH "\$ORIGIN"
# set target compile options
LINKER_LANGUAGE CXX
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
HIP_STANDARD 17
Expand Down Expand Up @@ -595,6 +596,7 @@ set_target_properties(cugraph_c
# set target compile options
CXX_STANDARD 17
CXX_STANDARD_REQUIRED ON
LINKER_LANGUAGE CXX
CUDA_STANDARD 17
CUDA_STANDARD_REQUIRED ON
POSITION_INDEPENDENT_CODE ON
Expand Down
2 changes: 1 addition & 1 deletion cpp/include/cugraph/utilities/mask_utils.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

#include <raft/core/handle.hpp>

#include <cuda/functional>
// #include <cuda/functional>
#include <thrust/copy.h>
#include <thrust/functional.h>
#include <thrust/iterator/counting_iterator.h>
Expand Down
2 changes: 2 additions & 0 deletions hipification_of_2502.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ In cpp/CMakelists.txt

Change CUGRAPH_CUDA_FLAGS to CUGRAPH_HIP_FLAGS and copy inputs from rocGRAPH

Set LINKER_LANGUAGE to CXX in set_target_properties

Changed target_compile_options to
target_compile_options(cugraph
PRIVATE "$<$<COMPILE_LANGUAGE:CXX>:${CUGRAPH_CXX_FLAGS}>"
Expand Down

0 comments on commit 720b8b2

Please sign in to comment.