Skip to content

Commit

Permalink
add -cubin
Browse files Browse the repository at this point in the history
  • Loading branch information
leofang committed Oct 2, 2019
1 parent d4ff126 commit 8415293
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cupy/cuda/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def compile_using_nvcc(source, options=(), arch=None,
raise ValueError('Invalid code_type %s. Should be cubin or ptx')

arch_str = '-gencode=arch=compute_{cc},code=sm_{cc}'.format(cc=arch)
cmd = ['nvcc', '--%s' % code_type, arch_str] + list(options)
cmd = ['nvcc', '-cubin', '--%s' % code_type, arch_str] + list(options)

with TemporaryDirectory() as root_dir:
first_part = filename.split('.')[0]
Expand Down

0 comments on commit 8415293

Please sign in to comment.