Skip to content

Commit

Permalink
Disable memory tracker on Jetpack until the library is available (#5882)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuanLuo authored Jun 1, 2023
1 parent e0e2c1a commit 3d8d517
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,12 @@ def backend_cmake_args(images, components, be, install_dir, library_paths):
)
cargs.append(
cmake_backend_enable(be, 'TRITON_ENABLE_MEMORY_TRACKER', False))
elif target_platform() == 'jetpack':
print(
"Warning: Detected Jetpack build, backend utility 'device memory tracker' will be disabled as Jetpack doesn't contain required version of the library."
)
cargs.append(
cmake_backend_enable(be, 'TRITON_ENABLE_MEMORY_TRACKER', False))
elif FLAGS.enable_gpu:
cargs.append(
cmake_backend_enable(be, 'TRITON_ENABLE_MEMORY_TRACKER', True))
Expand Down

0 comments on commit 3d8d517

Please sign in to comment.