[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:
parent
45df09010c
commit
5f20c119bc
@ -5,6 +5,7 @@ All notable changes to this project will be documented in this file.
|
|||||||
|
|
||||||
### Added
|
### Added
|
||||||
- OpenACC flags to build for Volta.
|
- OpenACC flags to build for Volta.
|
||||||
|
- Kokkos list CLI argument shows some information about which device will be used.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
- Update SYCL implementation to SYCL 1.2.1 interface.
|
- Update SYCL implementation to SYCL 1.2.1 interface.
|
||||||
|
|||||||
@ -138,13 +138,13 @@ T KokkosStream<T>::dot()
|
|||||||
|
|
||||||
void listDevices(void)
|
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)
|
std::string getDeviceName(const int device)
|
||||||
{
|
{
|
||||||
return "Kokkos";
|
return typeid (Kokkos::DefaultExecutionSpace).name();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user