Skip to content

[Cache] Add cache management command line interface#212

Merged
yaoyaoding merged 1 commit intohidet-org:mainfrom
yaoyaoding:cache-management
May 4, 2023
Merged

[Cache] Add cache management command line interface#212
yaoyaoding merged 1 commit intohidet-org:mainfrom
yaoyaoding:cache-management

Conversation

@yaoyaoding
Copy link
Copy Markdown
Member

Add version.txt in operator cache

Now, we only use the compiled lib.so in the operator cache when the version.txt matches the current hidet version. Otherwise, we would re-compile the operator.

Add hidet cache commands

$ hidet cache
Usage: hidet cache [OPTIONS] COMMAND [ARGS]...

  Manage hidet cache.

Options:
  --help  Show this message and exit.

Commands:
  clear   Clear the hidet cache.
  status  Show cache status.

$ hidet cache clear --help
Usage: hidet cache clear [OPTIONS]

  Clear the hidet cache.

Options:
  --all   Clear all the cache.
  --help  Show this message and exit.

$ hidet cache status 
Hidet cache directory: /home/user/repos/hidet/.hidet_cache
       Path       Size
-----------  ---------
  examples/   1.07 GiB
test_cache/   0.55 GiB
    ops.zip   0.53 GiB
      onnx/   0.50 GiB
trt_engine/  54.40 MiB
docs-cache/  12.34 MiB
 benchmark/   2.23 MiB

@yaoyaoding yaoyaoding merged commit c0d597b into hidet-org:main May 4, 2023
@yaoyaoding yaoyaoding deleted the cache-management branch May 5, 2023 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant