Skip to content
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

Merged
merged 5 commits into from
Nov 5, 2018
Merged

Windows MSVC #68

merged 5 commits into from
Nov 5, 2018

Conversation

diorcety
Copy link

@diorcety diorcety commented Jun 7, 2018

Patche set for compiling the plugin on Windows

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
Copy link
Owner

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.

@@ -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;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Author

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

Copy link
Owner

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?

Copy link
Author

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)

Copy link
Owner

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants