https://github.com/Microsoft/CNTK
Raw File
Tip revision: f34b7d78f0f9fbfe889934cf68909cc12fe9526c authored by Vadim Mazalov on 31 August 2016, 21:01:06 UTC
Prevent repetitive update of the same node, which happens for recursive models.
Tip revision: f34b7d7
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