https://github.com/Microsoft/CNTK
Raw File
Tip revision: 571e7872984419110b9f1e2f32f95b90eaf3d841 authored by Guoli Ye on 16 May 2018, 22:50:44 UTC
embr
Tip revision: 571e787
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