未验证 提交 5f5cc824 编写于 作者: A Adam Moody 提交者: GitHub

op_builder: conditionally update relative path for hip compiled files (#3095)

Co-authored-by: NOlatunji Ruwase <olruwase@microsoft.com>
Co-authored-by: NJeff Rasley <jerasley@microsoft.com>
上级 0cd64bd4
......@@ -601,7 +601,10 @@ class CUDAOpBuilder(OpBuilder):
curr_file = Path(__file__).parent.parent # ds root
for i in range(len(sources)):
src = Path(sources[i])
sources[i] = str(src.relative_to(curr_file))
if src.is_absolute():
sources[i] = str(src.relative_to(curr_file))
else:
sources[i] = str(src)
cuda_ext.sources = sources
return cuda_ext
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册