Skip to content

Commit

Permalink
Merge pull request #8201 from leofang/jitify_ver
Browse files Browse the repository at this point in the history
Fix: always switch to the submodule dir before checking git tag/commit
  • Loading branch information
kmaehashi committed Mar 13, 2024
2 parents 50d48e7 + a017f7a commit 218e79e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions install/cupy_builder/install_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,9 @@ def check_cub_version(compiler, settings):
# could be in a git submodule?
try:
# CuPy's bundle
cupy_cub_include = _cub_path
cupy_cub_include = os.path.join(
cupy_builder.get_context().source_root,
"third_party/cccl")
a = subprocess.run(' '.join(['git', 'describe', '--tags']),
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
shell=True, cwd=cupy_cub_include)
Expand Down Expand Up @@ -578,7 +580,9 @@ def check_jitify_version(compiler, settings):
global _jitify_version

try:
cupy_jitify_include = _jitify_path
cupy_jitify_include = os.path.join(
cupy_builder.get_context().source_root,
"third_party/jitify")
# Unfortunately Jitify does not have any identifiable name (branch,
# tag, etc), so we must use the commit here
a = subprocess.run(' '.join(['git', 'rev-parse', '--short', 'HEAD']),
Expand Down

0 comments on commit 218e79e

Please sign in to comment.