Skip to content

Commit

Permalink
Update backend.py
Browse files Browse the repository at this point in the history
Updated c++ compiler version
  • Loading branch information
raipranav384 authored May 26, 2024
1 parent abdc07d commit 9f34629
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shencoder/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
_src_path = os.path.dirname(os.path.abspath(__file__))

nvcc_flags = [
'-O3', '-std=c++14',
'-O3', '-std=c++17',
'-U__CUDA_NO_HALF_OPERATORS__', '-U__CUDA_NO_HALF_CONVERSIONS__', '-U__CUDA_NO_HALF2_OPERATORS__',
]

if os.name == "posix":
c_flags = ['-O3', '-std=c++14']
c_flags = ['-O3', '-std=c++17']
elif os.name == "nt":
c_flags = ['/O2', '/std:c++17']

Expand Down Expand Up @@ -37,4 +37,4 @@ def find_cl_path():
]],
)

__all__ = ['_backend']
__all__ = ['_backend']

0 comments on commit 9f34629

Please sign in to comment.