[Kokkos] Set some meaningful output with --list argument.

The string is mangled by the linker, but should say something useful.
This commit is contained in:
Tom Deakin 2018-02-14 22:22:57 +00:00
parent 45df09010c
commit 5f20c119bc
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
### Added
- OpenACC flags to build for Volta.
- Kokkos list CLI argument shows some information about which device will be used.
### Changed
- Update SYCL implementation to SYCL 1.2.1 interface.

View File

@ -138,13 +138,13 @@ T KokkosStream<T>::dot()
void listDevices(void)
{
std::cout << "This is not the device you are looking for.";
std::cout << "Kokkos library for " << getDeviceName(0) << std::endl;
}
std::string getDeviceName(const int device)
{
return "Kokkos";
return typeid (Kokkos::DefaultExecutionSpace).name();
}