https://github.com/Microsoft/CNTK
Raw File
Tip revision: fe6c89fab084a98d68af66f7a445398d55a349bf authored by Amit Agarwal on 29 June 2016, 07:08:38 UTC
Disable _DEBUG macro for testing
Tip revision: fe6c89f
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