Fix setting GPU behaviour:
Condition maxSlotsPerGpu Behavior OptimizeModelStr 0 Bypass: non-shared temporary engine 1 GPU 1 Single slot, no round-robin >1 GPU, VRAM < 24 GB 1 Round-robin: 1 slot per GPU >1 GPU, VRAM >= 24 GB -1 Elastic: on-demand slot growth
This commit is contained in:
@@ -121,7 +121,9 @@ namespace ANSCENTER
|
||||
~ANSFacialRecognition() noexcept;
|
||||
void UnloadEngine();
|
||||
void Destroy();
|
||||
void SetMaxSlotsPerGpu(int n) { m_maxSlotsPerGpu = n; }
|
||||
private:
|
||||
int m_maxSlotsPerGpu{ 1 }; // set by dllmain based on GPU topology
|
||||
int GetUser(int userId, UserRecord& userRecord);
|
||||
int GetUser(int userId, const std::string& userCode,const std::string& userName, UserRecord& userRecord);
|
||||
int GetUsers(std::vector<UserRecord>& userRecords, std::vector<int>& userIds);
|
||||
|
||||
Reference in New Issue
Block a user