leezu commented on a change in pull request #17214: [tvmop] support cuda
multi-arch compilation
URL: https://github.com/apache/incubator-mxnet/pull/17214#discussion_r363406763
##########
File path: contrib/tvmop/compile.py
##########
@@ -105,18 +105,13 @@ def get_cuda_arch(arch):
return arch.split(';')
# the arch string contains '-arch=sm_xx'
+ archs = []
flags = arch.split()
for flag in flags:
- if flag.startswith('-arch='):
- return flag[len('-arch='):]
+ if flag.startswith('-gencode') or flag.startswith('arch='):
Review comment:
`if flag.startswith('-gencode')` should never be True, as then line 104
would have been True already?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services