Skip to content

Commit dbc32a5

Browse files
committed
Enable torchvision build with ROCm on Windows (#6)
* changing flags according to clang * update changes * fix hipcc run on windows * changed include dirs conversion for rocm windows * fixed clang compilation with space in include paths * fix hip kernels build * restruct CXX and MSVC flags * change cxx flags * change include headers in hipified source files * change cuda to hip in include paths * cleaning code * fixed win_wrap_single_compile * fix paths in hipify * format code * removing unnecessary flags * cleaning code * fix cleaning * cleaning code * cleaning code * restructured ninja commands * renaming hipcc function * added set runtime lib function * add set hipcc runtime library function * format code
1 parent 19d3b8d commit dbc32a5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

torch/utils/hipify/hipify_python.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ def __exit__(self, type, value, traceback):
143143
def _to_unix_path(path: str) -> str:
144144
return path.replace(os.sep, '/')
145145

146-
# Follow UNIX convention for paths to use '/' instead of '\\' on Windows
147-
def _to_unix_path(path: str) -> str:
148-
return path.replace(os.sep, '/')
149-
150146
def match_extensions(filename: str, extensions: Iterable) -> bool:
151147
"""Helper method to see if filename ends with certain extension"""
152148
return any(filename.endswith(e) for e in extensions)

0 commit comments

Comments
 (0)