Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
las3_pub
/
predictable_parallel_patterns
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a260ebde
authored
Jun 24, 2019
by
FritzFlorian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
73264cda
2ad04ce5
Pipeline
#1278
passed with stages
in 3 minutes 57 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
app/benchmark_fft/main.cpp
+1
-1
lib/pls/include/pls/internal/base/system_details.h
+14
-3
No files found.
app/benchmark_fft/main.cpp
View file @
a260ebde
...
...
@@ -80,7 +80,7 @@ int main() {
pls
::
internal
::
helpers
::
run_mini_benchmark
([
&
]
{
complex_vector
input
=
initial_input
;
fft
(
input
.
begin
(),
input
.
size
());
},
8
,
1
000
);
},
7
,
30
000
);
PROFILE_SAVE
(
"test_profile.prof"
)
}
lib/pls/include/pls/internal/base/system_details.h
View file @
a260ebde
...
...
@@ -2,10 +2,19 @@
#ifndef PLS_SYSTEM_DETAILS_H
#define PLS_SYSTEM_DETAILS_H
#include <cstdint>
#if (COMPILER == MVCC)
#include <emmintrin.h>
#if MSVC
#ifdef _M_X86
#define ARCH_X86
#endif
#endif
#if GCC
#ifdef __i386__
#define ARCH_X86
#endif
#endif
#include <cstdint>
namespace
pls
{
namespace
internal
{
...
...
@@ -53,7 +62,9 @@ constexpr pointer_t CACHE_LINE_SIZE = 64;
* Choose the implementation appropriate for your compiler-cpu combination.
*/
inline
void
relax_cpu
()
{
#ifdef ARCH_X86
asm
volatile
(
"pause"
::
:
"memory"
);
#endif
}
}
...
...
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