Skip to content

Commit 95b43c1

Browse files
committed
Correct format of include path in libs.tests()
- Print the configuration before the result of the check - Indent the configuration - More verbose explanation of what is being printed
1 parent 98bd3a9 commit 95b43c1

File tree

1 file changed

+4
-3
lines changed
  • numba_cuda/numba/cuda/cudadrv

1 file changed

+4
-3
lines changed

numba_cuda/numba/cuda/cudadrv/libs.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,10 @@ def test():
195195
failed = True
196196

197197
# Check cuda include paths
198+
199+
print("Include directory configuration variable:")
200+
print(f"\tCUDA_INCLUDE_PATH={config.CUDA_INCLUDE_PATH}")
201+
198202
where = _get_source_variable('include_dir')
199203
print(f'Finding include directory from {where}')
200204
include = get_cuda_include_dir()
@@ -207,7 +211,4 @@ def test():
207211
print('\tERROR: failed to find cuda include directory:\n%s' % e)
208212
failed = True
209213

210-
print("Config:")
211-
print(f"CUDA_INCLUDE_PATH={config.CUDA_INCLUDE_PATH}")
212-
213214
return not failed

0 commit comments

Comments
 (0)