Skip to content

Commit

Permalink
[Cylon] Add arrow 16.1.0 support
Browse files Browse the repository at this point in the history
Signed-off-by: Arup Sarker <arupcsedu@gmail.com>
  • Loading branch information
arupcsedu committed Jun 8, 2024
1 parent 758a0dd commit 5778f14
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 21 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ build_cpp_with_custom_arrow() {
print_line
source "${PYTHON_ENV_PATH}"/bin/activate || exit 1
read_python_requirements
pip install pyarrow==14.0.2 || exit 1
pip install pyarrow==16.1.0 || exit 1
pip install parquet || exit 1
ARROW_LIB=$(python3 -c 'import pyarrow as pa; import os; print(os.path.dirname(pa.__file__))') || exit 1
ARROW_INC=$(python3 -c 'import pyarrow as pa; import os; print(os.path.join(os.path.dirname(pa.__file__), "include"))') || exit 1
Expand Down Expand Up @@ -356,7 +356,7 @@ build_gcylon() {

# set install path to conda directory if not already set
INSTALL_PATH=${INSTALL_PATH:=${PREFIX:=${CONDA_PREFIX}}}
export CUDA_HOME=$CONDA_PREFIX/bin
export CUDA_HOME=$CONDA_PREFIX

echo "SOURCE_DIR: ${SOURCE_DIR}"
BUILD_PATH=$(pwd)/build
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/cylon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ dependencies:
#- python>=3.8
- python>=3.8,<3.10
- cmake>=3.23.1
- arrow-cpp=14.0.2
- pyarrow=14.0.2
- arrow-cpp=16.1.0
- pyarrow=16.1.0
- glog
- openmpi=4.1.4
- ucx>=1.12.1
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/cylon_MacOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ channels:
dependencies:
- python>=3.9,<3.10
- cmake>=3.23.1,!=3.25.0
- arrow-cpp=14.0.2
- pyarrow=14.0.2
- arrow-cpp=16.1.0
- pyarrow=16.1.0
- glog
- openmpi>=4.1.2
- cython>=0.29.31,<3
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/cylon_NoUCX.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ channels:
dependencies:
- python>=3.8,<3.10
- cmake>=3.23.1,!=3.25.0
- arrow-cpp=14.0.2
- pyarrow=14.0.2
- arrow-cpp=16.1.0
- pyarrow=16.1.0
- glog
- openmpi=4.1.4
- cython>=0.29.31,<3
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/cylon_rivanna_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ channels:
dependencies:
- python>=3.8,<3.10
- cmake>=3.23.1,!=3.25.0
- arrow-cpp=14.0.2
- pyarrow=14.0.2
- arrow-cpp=16.1.0
- pyarrow=16.1.0
- glog
- openmpi=4.1.4
- ucx>=1.12.1
Expand Down
4 changes: 2 additions & 2 deletions conda/environments/cylon_rivanna_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ channels:
dependencies:
- python>=3.8,<3.10
- cmake>=3.23.1,!=3.25.0
- arrow-cpp=14.0.2
- pyarrow=14.0.2
- arrow-cpp=16.1.0
- pyarrow=16.1.0
- glog
- openmpi=4.1.4
- ucx>=1.12.1
Expand Down
10 changes: 6 additions & 4 deletions conda/environments/gcylon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ channels:
- nvidia
- defaults
dependencies:
- cudf=24.04
#- cudf=24.04
- python=3.11
- cuda
#- cuda-version=12.2
#- pytorch
- cmake>=3.23.1
Expand All @@ -17,7 +18,7 @@ dependencies:
- numpy
- pandas
- fsspec
#- setuptools
- setuptools
# these are for running tests only,
# they are not needed for using pygcylon or compiling it
- pytest
Expand All @@ -26,5 +27,6 @@ dependencies:
- gcc=11.4
- gxx=11.4
- gxx_linux-64=11.4
- cuda-runtime
- cudatoolkit
#- cuda-runtime
#- cudatoolkit
- cudf
4 changes: 2 additions & 2 deletions conda/environments/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ channels:
dependencies:
- python>=3.8,<3.10
- cmake>=3.23.1,!=3.25.0
- arrow-cpp=14.0.2
- pyarrow=14.0.2
- arrow-cpp=16.1.0
- pyarrow=16.1.0
- glog
- msmpi
- cython>=0.29.31,<3
Expand Down
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if (NOT CMAKE_BUILD_TYPE)
endif ()

# cmake modules directories
set(CYLON_ARROW_VERSION 14.0.2)
set(CYLON_ARROW_VERSION 16.1.0)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake/Modules/" ${CMAKE_MODULE_PATH})
list(APPEND CMAKE_MODULE_PATH ${CYLON_SOURCE_DIR}/CMake)

Expand Down
6 changes: 4 additions & 2 deletions cpp/src/cylon/compute/aggregate_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,10 @@ cylon::Status AllReduce(const std::shared_ptr<CylonContext> &ctx,
auto rcv_scalar = std::make_shared<ScalarT>(*send_scalar);
std::memset(&rcv_scalar->value, 0, sizeof(CType));

RETURN_CYLON_STATUS_IF_FAILED(cylon::mpi::AllReduce(ctx, send_scalar->mutable_data(),
rcv_scalar->mutable_data(),
auto rcv_data = rcv_scalar->data();

RETURN_CYLON_STATUS_IF_FAILED(cylon::mpi::AllReduce(ctx, send_scalar->data(),
(void*)rcv_data,
1, data_type, reduce_ops[i]));
rcv_scalar_vector.push_back(rcv_scalar);
}
Expand Down

0 comments on commit 5778f14

Please sign in to comment.