https://github.com/Microsoft/CNTK
Raw File
Tip revision: 4ffe3a141a7a6e62bbfbf5ab0cd0621e3e9c1cd5 authored by Eldar Akchurin on 28 February 2017, 13:58:44 UTC
Some not yet working implementation
Tip revision: 4ffe3a1
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