File: version_check.cxx

package info (click to toggle)
libcudacxx 1.8.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 66,464 kB
  • sloc: cpp: 517,767; ansic: 9,474; python: 6,108; sh: 2,225; asm: 2,154; makefile: 7
file content (15 lines) | stat: -rw-r--r-- 297 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <cuda/std/atomic>

#include <cstdio>

int main()
{
  cuda::std::atomic<int> x{0};

  printf("Built with libcudacxx version %d.%d.%d.\n",
         _LIBCUDACXX_CUDA_API_VERSION_MAJOR,
         _LIBCUDACXX_CUDA_API_VERSION_MINOR,
         _LIBCUDACXX_CUDA_API_VERSION_PATCH);

  return x;
}