File: version.cu

package info (click to toggle)
python-escript 5.6-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 144,196 kB
  • sloc: python: 592,057; cpp: 136,909; ansic: 18,675; javascript: 9,411; xml: 3,384; sh: 740; makefile: 203
file content (22 lines) | stat: -rw-r--r-- 733 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <thrust/version.h>
#include <cusp/version.h>
#include <iostream>

int main(void)
{
    std::cout << "The following libraries were found:" << std::endl;

    std::cout << "    CUDA   v" << (CUDA_VERSION / 1000) << "." <<
                                   (CUDA_VERSION % 1000) / 10 << std::endl;

    std::cout << "    Thrust v" << THRUST_MAJOR_VERSION << "." << 
                                   THRUST_MINOR_VERSION << "." << 
                                   THRUST_SUBMINOR_VERSION << std::endl;

    std::cout << "    Cusp   v" << CUSP_MAJOR_VERSION << "." << 
                                   CUSP_MINOR_VERSION << "." << 
                                   CUSP_SUBMINOR_VERSION << std::endl;

    return 0;
}