This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import subprocess | |
import os | |
class GpuInfo(object): | |
def __init__(self, index, memory_total, memory_used, gpu_load): | |
""" | |
:param index: GPU index | |
:param memory_total: total GPU memory, Mb | |
:param memory_used: GPU memory already in use, Mb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
****************************************************************************** | |
* File Name : main.c | |
* Description : Main program body | |
****************************************************************************** | |
* | |
* COPYRIGHT(c) 2016 STMicroelectronics | |
* | |
* Redistribution and use in source and binary forms, with or without modification, | |
* are permitted provided that the following conditions are met: |
NewerOlder