Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyfelder committed Dec 23, 2024
1 parent 161d84f commit 0604e41
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion icicle/src/device_api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ namespace icicle {
eIcicleError set_default_device(const Device& dev)
{
if (!is_device_registered(dev.type)) {
THROW_ICICLE_ERR(eIcicleError::INVALID_DEVICE, "Device type " + std::string(dev.type) + " has not been registered");
THROW_ICICLE_ERR(
eIcicleError::INVALID_DEVICE, "Device type " + std::string(dev.type) + " has not been registered");
}
m_default_device = dev;
return eIcicleError::SUCCESS;
Expand Down
5 changes: 4 additions & 1 deletion icicle/src/runtime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ using namespace icicle;

extern "C" eIcicleError icicle_set_device(const Device& device) { return DeviceAPI::set_thread_local_device(device); }

extern "C" eIcicleError icicle_set_default_device(const Device& device) { return DeviceAPI::set_default_device(device); }
extern "C" eIcicleError icicle_set_default_device(const Device& device)
{
return DeviceAPI::set_default_device(device);
}

extern "C" eIcicleError icicle_get_active_device(icicle::Device& device)
{
Expand Down

0 comments on commit 0604e41

Please sign in to comment.