Skip to content

Commit

Permalink
Merge pull request #8004 from leofang/cache_doc
Browse files Browse the repository at this point in the history
Add a note on accelerating CI/CD
  • Loading branch information
kmaehashi committed Dec 25, 2023
2 parents 67e05df + 8480440 commit cb4e512
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/source/user_guide/performance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ The compiled code is also cached in the directory ``${HOME}/.cupy/kernel_cache``
This allows reusing the compiled kernel binary across the process.


Testing with CI/CD
------------------

When running CI/CD to test CuPy or any downstream packages that heavily rely on CuPy, depending on the use cases the developers/users may find that JIT compilation takes a non-negligible amount of time. To accelerate testing, it is advised to store the artifacts generated under the cache directory (see the above section) in a persistent location (say, a cloud storage) after the test is finished, regardless of success or failure, so that the artifacts can be re-used across runs, avoiding JIT'ing kernels at test time.


In-depth profiling
------------------

Expand Down

0 comments on commit cb4e512

Please sign in to comment.