https://github.com/Microsoft/CNTK
Raw File
Tip revision: a0be08c6e026b23dd77894a1e81a24ee69f3e3ef authored by thhoens on 30 August 2016, 19:41:25 UTC
Created workaround for API memory leak
Tip revision: a0be08c
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