-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows MSVC #68
Windows MSVC #68
Conversation
setup.py
Outdated
e.extra_link_args += ['-fopenmp'] | ||
if openmpflag not in e.extra_compile_args: | ||
e.extra_compile_args += [openmpflag] | ||
e.extra_compile_args += compileflags |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
compileflags
only gets added to e.extra_compile_args
if compiling with openmp. Maybe move to the _needs_stub
loop, but be careful that they only get added once (I seem to remember build_extensions
being called multiple times being an issue.
src/bitshuffle_core.c
Outdated
@@ -1138,7 +1138,7 @@ int64_t bshuf_untrans_bit_elem(const void* in, void* out, const size_t size, | |||
int64_t bshuf_blocked_wrap_fun(bshufBlockFunDef fun, const void* in, void* out, \ | |||
const size_t size, const size_t elem_size, size_t block_size) { | |||
|
|||
size_t ii; | |||
long long ii; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MSVC openmp doesn't like the size_t type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it is used throughout the code and is a very standard type. Why only this one place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The openmp pragma (as iterator)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay fair enough. Maybe state this in a comment above this line so it doesn't bewilder future developers.
setup.py
Outdated
@@ -19,7 +19,7 @@ | |||
VERSION_POINT = 4 | |||
|
|||
# Only unset in the 'release' branch and in tags. | |||
VERSION_DEV = 1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only allowed in the release branch. Please change back.
Patche set for compiling the plugin on Windows