/[escript]/trunk/cusplibrary/examples/Version/version.cu
ViewVC logotype

Contents of /trunk/cusplibrary/examples/Version/version.cu

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5148 - (show annotations)
Mon Sep 15 01:25:23 2014 UTC (6 years, 2 months ago) by caltinay
File size: 733 byte(s)
Merging ripley diagonal storage + CUDA support into trunk.
Options file version has been incremented due to new options
'cuda' and 'nvccflags'.

1 #include <thrust/version.h>
2 #include <cusp/version.h>
3 #include <iostream>
4
5 int main(void)
6 {
7 std::cout << "The following libraries were found:" << std::endl;
8
9 std::cout << " CUDA v" << (CUDA_VERSION / 1000) << "." <<
10 (CUDA_VERSION % 1000) / 10 << std::endl;
11
12 std::cout << " Thrust v" << THRUST_MAJOR_VERSION << "." <<
13 THRUST_MINOR_VERSION << "." <<
14 THRUST_SUBMINOR_VERSION << std::endl;
15
16 std::cout << " Cusp v" << CUSP_MAJOR_VERSION << "." <<
17 CUSP_MINOR_VERSION << "." <<
18 CUSP_SUBMINOR_VERSION << std::endl;
19
20 return 0;
21 }
22

  ViewVC Help
Powered by ViewVC 1.1.26