# =============================================================================
# cmake-format: off
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
# SPDX-License-Identifier: Apache-2.0
# cmake-format: on
# =============================================================================
cmake_minimum_required(VERSION 4.0)
project(rapids-test-project LANGUAGES CUDA)

include(${rapids-cmake-dir}/rapids-test.cmake)

rapids_test_init()

add_executable(verify_alloc main.cu)

enable_testing()
rapids_test_add(NAME simple_test COMMAND verify_alloc GPUS 10 PERCENT 1)

# Validate that the test runs correctly
set_tests_properties(simple_test PROPERTIES PASS_REGULAR_EXPRESSION "Seeing at least a single GPU")
