https://github.com/Microsoft/CNTK
Raw File
Tip revision: 9e84d1a399ab10a5c8afd067a0a1ccd87b9e7b23 authored by Vadim Mazalov on 18 July 2019, 05:11:01 UTC
Introduce cache for matrices
Tip revision: 9e84d1a
GPUWatcher.h
//
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.md file in the project root for full license information.
//

#pragma once

#include "GPUMatrix.h"

class MATH_API GPUWatcher
{
public:
    static size_t GetFreeMemoryOnCUDADevice(int devId);
    static int GetGPUIdWithTheMostFreeMemory();
    GPUWatcher(void);
    ~GPUWatcher(void);
};
back to top