Skip to content

Commit

Permalink
Debugging: print build.ninja for generator
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleFromNVIDIA committed Feb 8, 2024
1 parent bf4e197 commit 135ff76
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#=============================================================================
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
# Copyright (c) 2022-2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -29,4 +29,3 @@ target_link_libraries(verify_docs PRIVATE CUDA::cudart)

enable_testing()
add_test(NAME simple_test COMMAND verify_docs)
rapids_test_gpu_requirements(simple_test GPUS 1 PERCENT 25)
19 changes: 5 additions & 14 deletions testing/test/no_add-with-cpp-handler-from-docs/main.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022-2023, NVIDIA CORPORATION.
* Copyright (c) 2022-2024, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -14,21 +14,12 @@
* limitations under the License.
*/

#include <fstream>
#include <iostream>
#include <vector>

#include "rapids_cmake_ctest_allocation.cpp"
#include "rapids_cmake_ctest_allocation.hpp"

int main()
{
// Verify we only have a single GPU visible to us
auto allocs = rapids_cmake::full_allocation();

if (allocs.size() != 1) { return 1; }

auto alloc = allocs[0];
if (alloc.slots != 25) { return 1; }

return 0;
std::ifstream build_file("rapids-cmake/generate_ctest_json-build/build.ninja");
std::cout << build_file.rdbuf();
return 1;
}

0 comments on commit 135ff76

Please sign in to comment.