MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / bindNativeDevice

Method bindNativeDevice

src/Parallel/AcceleratorDevice.cpp:51–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51void AcceleratorDevice::bindNativeDevice(int deviceId) {
52 device::DeviceInstance& device = device::DeviceInstance::getInstance();
53 {
54 std::ostringstream info;
55 info << "Device API: " << device.api->getApiName();
56 infoMessages.push_back(info.str());
57 }
58 {
59 std::ostringstream info;
60 info << "Device (rank=0): " << device.api->getDeviceName(deviceId);
61 infoMessages.push_back(info.str());
62 }
63 device.api->setDevice(deviceId);
64}
65
66void AcceleratorDevice::printInfo() {
67 const auto rank = seissol::MPI::mpi.rank();

Callers

nothing calls this directly

Calls 1

push_backMethod · 0.80

Tested by

no test coverage detected