-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #634 from rapidsai/branch-22.08
[RELEASE] cuspatial v22.08
- Loading branch information
Showing
135 changed files
with
4,885 additions
and
2,908 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
|
||
# Copyright (c) 2018-2019, NVIDIA CORPORATION. | ||
|
||
# Ignore conda-provided CMAKE_ARGS for the Python build. | ||
unset CMAKE_ARGS | ||
|
||
# This assumes the script is executed from the root of the repo directory | ||
./build.sh cuspatial --cmake-args=\"-DFIND_CUSPATIAL_CPP=ON\" | ||
./build.sh cuspatial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,6 @@ cuda_compiler: | |
|
||
sysroot_version: | ||
- "2.17" | ||
|
||
gdal_version: | ||
- ">=3.4.3,<3.4.4a0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Copyright (c) 2018-2022, NVIDIA CORPORATION. | ||
|
||
# build cuspatial with verbose output | ||
./build.sh -v libcuspatial tests --allgpuarch -n | ||
./build.sh -v libcuspatial tests benchmarks --allgpuarch -n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* | ||
* Copyright (c) 2022, NVIDIA CORPORATION. | ||
* | ||
* Licensed 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. | ||
*/ | ||
|
||
#include <rmm/mr/device/cuda_memory_resource.hpp> | ||
#include <rmm/mr/device/owning_wrapper.hpp> | ||
#include <rmm/mr/device/per_device_resource.hpp> | ||
#include <rmm/mr/device/pool_memory_resource.hpp> | ||
|
||
namespace cuspatial { | ||
|
||
/** | ||
* @brief An RAII class setting up RMM memory pool for `nvbench` benchmarks | ||
* | ||
* This is a temporary solution before templated fixtures tests are supported | ||
* in `nvbench`. Similarly to `cuspatial::benchmark`, creating this RAII object in | ||
* each benchmark will ensure that the RAPIDS Memory Manager pool mode is used | ||
* in benchmarks, which eliminates memory allocation / deallocation performance | ||
* overhead from the benchmark. | ||
* | ||
* Example: | ||
* | ||
* void my_benchmark(nvbench::state& state) { | ||
* cuspatial::rmm_pool_raii pool_raii; | ||
* state.exec([](nvbench::launch& launch) { | ||
* // benchmark stuff | ||
* }); | ||
* } | ||
* | ||
* NVBENCH_BENCH(my_benchmark); | ||
*/ | ||
class rmm_pool_raii { | ||
private: | ||
// memory resource factory helpers | ||
inline auto make_cuda() { return std::make_shared<rmm::mr::cuda_memory_resource>(); } | ||
|
||
inline auto make_pool() | ||
{ | ||
return rmm::mr::make_owning_wrapper<rmm::mr::pool_memory_resource>(make_cuda()); | ||
} | ||
|
||
public: | ||
rmm_pool_raii() | ||
{ | ||
mr = make_pool(); | ||
rmm::mr::set_current_device_resource(mr.get()); // set default resource to pool | ||
} | ||
|
||
~rmm_pool_raii() | ||
{ | ||
rmm::mr::set_current_device_resource(nullptr); | ||
mr.reset(); | ||
} | ||
|
||
private: | ||
std::shared_ptr<rmm::mr::device_memory_resource> mr; | ||
}; | ||
|
||
} // namespace cuspatial |
Oops, something went wrong.