GPUΒΆ
- class jtop.core.gpu.GPUΒΆ
Bases:
GenericInterfaceThis class get the output from your GPU, this class is readable like a dictionary, please read the documentation on
gpubut is also usable to enable, disable 3d scaling on your device.with jtop() as jetson: if jetson.ok(): jetson.gpu.set_scaling_3D("gpu", True)
Below all methods available using the
gpuattribute- get_scaling_3D(name)ΒΆ
Return status of 3D scaling, this output is also readable from
gpuattribute- Parameters:
name (str) β GPU name
- Returns:
True if enabled
- Return type:
- Raises:
JtopException β if GPU doesnβt exist
- property scaling_3DΒΆ
Return status of 3D scaling, this output is also readable from
gpuattributewith jtop() as jetson: if jetson.ok(): # Set new 3D scaling jetson.gpu.set_scaling_3D = True # same of jetson.gpu.set_scaling_3D("ga10b", True)
- Raises:
JtopException β if there are no integrated GPU
- Returns:
status 3D scaling
- Return type:
- set_scaling_3D(name, value)ΒΆ
Enable disable GPU 3D scaling. this method send a command like below on your Jetson.
Set 3D scaling on your board, like the command below. To know the GPU name use
gpuwith jtop() as jetson: if jetson.ok(): jetson.gpu.set_scaling_3D("ga10b", True)
is equivalent to:
- Parameters:
- Raises:
JtopException β if GPU doesnβt exist