Skip to content

Morpheous Data Generation #1075

Answered by mdemoret-nv
shubh0155 asked this question in Morpheus
Jul 20, 2023 · 4 comments · 4 replies
Discussion options

You must be logged in to vote

@shubh0155 and @ABHIPATEL98 Can you try the following script to generate a dataset from your local GPUs? It uses nvidia-ml which is the same library used by nvidia-smi. You will need to install nvidia-ml-py3 and pandas for this script to work.

import time

import pandas as pd
from pynvml.smi import NVSMI_QUERY_GPU
from pynvml.smi import nvidia_smi

# Output name
output_file = "nvsmi.json"

# Interval
interval_ms = 1000

query_opts = NVSMI_QUERY_GPU.copy()

# Remove the timestamp and supported clocks from the query
del query_opts["timestamp"]
del query_opts["supported-clocks"]

nvsmi = nvidia_smi.getInstance()

with open(output_file, "w", encoding="UTF-8") as f:

    while (True):

        dq

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@shubh0155
Comment options

@ABHIPATEL98
Comment options

@mdemoret-nv
Comment options

Comment options

You must be logged in to vote
1 reply
@mdemoret-nv
Comment options

Answer selected by jarmak-nv
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants