mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-24 00:12:08 +00:00
feat(common) adding device utilities
This commit is contained in:
parent
5f9120da9c
commit
fb81ffce02
@ -1,7 +1,7 @@
|
||||
//
|
||||
// Created by morgan on 27/09/24.
|
||||
//
|
||||
|
||||
#include <nvml.h>
|
||||
#include "device.hpp"
|
||||
|
||||
std::optional<nvmlDevice_t> huggingface::tgi::GetDeviceByIndex(device_index_t device)
|
||||
|
Loading…
Reference in New Issue
Block a user