Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cpp/src/arrow/gpu/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,15 @@ install(
FILES "${CMAKE_CURRENT_BINARY_DIR}/arrow-gpu.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")

# CUDA build version
configure_file(cuda_version.h.in
"${CMAKE_CURRENT_BINARY_DIR}/cuda_version.h"
@ONLY)

install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/cuda_version.h"
DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/arrow/gpu")

set(ARROW_GPU_TEST_LINK_LIBS
arrow_gpu_shared
${ARROW_TEST_LINK_LIBS})
Expand Down
24 changes: 24 additions & 0 deletions cpp/src/arrow/gpu/cuda_api.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#ifndef ARROW_GPU_CUDA_API_H
#define ARROW_GPU_CUDA_API_H

#include "arrow/gpu/cuda_memory.h"
#include "arrow/gpu/cuda_version.h"

#endif // ARROW_GPU_CUDA_API_H
25 changes: 25 additions & 0 deletions cpp/src/arrow/gpu/cuda_version.h.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,
// software distributed under the License is distributed on an
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
// KIND, either express or implied. See the License for the
// specific language governing permissions and limitations
// under the License.

#ifndef ARROW_GPU_CUDA_VERSION_H
#define ARROW_GPU_CUDA_VERSION_H

// Set the CUDA version used to build the library
#define ARROW_CUDA_ABI_VERSION_MAJOR @CUDA_VERSION_MAJOR@
#define ARROW_CUDA_ABI_VERSION_MINOR @CUDA_VERSION_MINOR@

#endif // ARROW_GPU_CUDA_VERSION_H