Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Martin Reinecke
pypocketfft
Commits
0eb0e272
Commit
0eb0e272
authored
Sep 03, 2020
by
Peter Bell
Browse files
Drop hardware_interference_size. Not implemented in any standard library
parent
7a39f782
Changes
1
Hide whitespace changes
Inline
Side-by-side
pocketfft_hdronly.h
View file @
0eb0e272
...
...
@@ -611,11 +611,9 @@ template <typename T> struct aligned_allocator
class
thread_pool
{
#if __cpp_lib_hardware_interference_size >= 201603L
struct
alignas
(
std
::
hardware_destructive_interference_size
)
worker
#else
struct
alignas
(
64
)
worker
#endif
// A reasonable guess, probably close enough for most hardware
static
constexpr
size_t
cache_line_size
=
64
;
struct
alignas
(
cache_line_size
)
worker
{
std
::
thread
thread
;
std
::
condition_variable
work_ready
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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