Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fengzch-das
nunchaku
Commits
d02f26df
Commit
d02f26df
authored
Nov 10, 2024
by
sxtyzhangzk
Committed by
Zhekai Zhang
Nov 10, 2024
Browse files
[major] fix build issue
parent
fa0c0636
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
setup.py
setup.py
+0
-1
src/Serialization.cpp
src/Serialization.cpp
+1
-1
No files found.
setup.py
View file @
d02f26df
...
@@ -6,7 +6,6 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension
...
@@ -6,7 +6,6 @@ from torch.utils.cpp_extension import BuildExtension, CUDAExtension
class
CustomBuildExtension
(
BuildExtension
):
class
CustomBuildExtension
(
BuildExtension
):
def
build_extensions
(
self
):
def
build_extensions
(
self
):
for
ext
in
self
.
extensions
:
for
ext
in
self
.
extensions
:
print
(
ext
.
extra_compile_args
)
if
not
"cxx"
in
ext
.
extra_compile_args
:
if
not
"cxx"
in
ext
.
extra_compile_args
:
ext
.
extra_compile_args
[
"cxx"
]
=
[]
ext
.
extra_compile_args
[
"cxx"
]
=
[]
if
self
.
compiler
.
compiler_type
==
"msvc"
:
if
self
.
compiler
.
compiler_type
==
"msvc"
:
...
...
src/Serialization.cpp
View file @
d02f26df
...
@@ -75,7 +75,7 @@ private:
...
@@ -75,7 +75,7 @@ private:
class
SafeTensors
::
MMapImplPrivate
:
public
SafeTensors
::
MMapImpl
{
class
SafeTensors
::
MMapImplPrivate
:
public
SafeTensors
::
MMapImpl
{
public:
public:
MMapImplPrivate
(
const
std
::
string
&
filename
)
{
MMapImplPrivate
(
const
std
::
string
&
filename
)
{
throw
std
::
runtime_error
(
"MAP_PRIVATE is not implemented on this system"
)
throw
std
::
runtime_error
(
"MAP_PRIVATE is not implemented on this system"
)
;
}
}
virtual
size_t
size
()
override
{
virtual
size_t
size
()
override
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment