diff --git a/cpp/test/CMakeLists.txt b/cpp/test/CMakeLists.txt index 7f45a6dd22..aeb39ee7ff 100644 --- a/cpp/test/CMakeLists.txt +++ b/cpp/test/CMakeLists.txt @@ -372,5 +372,13 @@ if(BUILD_TESTS) ConfigureTest( NAME UTILS_TEST PATH test/core/seive.cu test/util/bitonic_sort.cu test/util/cudart_utils.cpp test/util/device_atomics.cu test/util/integer_utils.cpp test/util/pow2_utils.cu + test/util/get_cache_idx_1.cu + test/util/get_cache_idx_2.cu ) + set_target_properties( + UTILS_TEST + PROPERTIES + CUDA_SEPARABLE_COMPILATION ON + ) + endif() diff --git a/cpp/test/util/get_cache_idx_1.cu b/cpp/test/util/get_cache_idx_1.cu new file mode 100644 index 0000000000..14b014746b --- /dev/null +++ b/cpp/test/util/get_cache_idx_1.cu @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2023, 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 +#include + diff --git a/cpp/test/util/get_cache_idx_2.cu b/cpp/test/util/get_cache_idx_2.cu new file mode 100644 index 0000000000..14b014746b --- /dev/null +++ b/cpp/test/util/get_cache_idx_2.cu @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2023, 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 +#include +