Skip to content

Commit

Permalink
add some prints
Browse files Browse the repository at this point in the history
  • Loading branch information
marvelousmonicaaa committed Feb 27, 2024
1 parent c38eed8 commit dc71bb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions runtime_benchmark/runtime_ifta.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def task(method):
print("Is Built with CUDA: ", tf.test.is_built_with_cuda())
print("CUDA Version: ", tf.sysconfig.get_build_info()["cuda_version"])
# Run the task on GPU
print("Running on GPU")
start_time = time.time()
task('ifta')
gpu_time = time.time() - start_time
Expand Down
2 changes: 2 additions & 0 deletions runtime_benchmark/slm_hologram_gs.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ def task(method):
# Disable GPU for the first run
os.environ['CUDA_VISIBLE_DEVICES'] = '-1'
print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))

# Run the task on CPU
print("Running on CPU")
start_time = time.time()
task('gs')
cpu_time = time.time() - start_time
Expand Down

0 comments on commit dc71bb0

Please sign in to comment.