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
2ad04ce5
authored
Jun 20, 2019
by
Florian Fritz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add minor changes for ARM platform.
parent
0b4580ee
Pipeline
#1272
passed with stages
in 3 minutes 56 seconds
Changes
2
Pipelines
1
Hide 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 @
2ad04ce5
...
@@ -80,7 +80,7 @@ int main() {
...
@@ -80,7 +80,7 @@ int main() {
pls
::
internal
::
helpers
::
run_mini_benchmark
([
&
]
{
pls
::
internal
::
helpers
::
run_mini_benchmark
([
&
]
{
complex_vector
input
=
initial_input
;
complex_vector
input
=
initial_input
;
fft
(
input
.
begin
(),
input
.
size
());
fft
(
input
.
begin
(),
input
.
size
());
},
8
,
1
000
);
},
7
,
30
000
);
PROFILE_SAVE
(
"test_profile.prof"
)
PROFILE_SAVE
(
"test_profile.prof"
)
}
}
lib/pls/include/pls/internal/base/system_details.h
View file @
2ad04ce5
...
@@ -2,10 +2,19 @@
...
@@ -2,10 +2,19 @@
#ifndef PLS_SYSTEM_DETAILS_H
#ifndef PLS_SYSTEM_DETAILS_H
#define PLS_SYSTEM_DETAILS_H
#define PLS_SYSTEM_DETAILS_H
#include <cstdint>
#if MSVC
#if (COMPILER == MVCC)
#ifdef _M_X86
#include <emmintrin.h>
#define ARCH_X86
#endif
#endif
#if GCC
#ifdef __i386__
#define ARCH_X86
#endif
#endif
#endif
#include <cstdint>
namespace
pls
{
namespace
pls
{
namespace
internal
{
namespace
internal
{
...
@@ -53,7 +62,9 @@ constexpr pointer_t CACHE_LINE_SIZE = 64;
...
@@ -53,7 +62,9 @@ constexpr pointer_t CACHE_LINE_SIZE = 64;
* Choose the implementation appropriate for your compiler-cpu combination.
* Choose the implementation appropriate for your compiler-cpu combination.
*/
*/
inline
void
relax_cpu
()
{
inline
void
relax_cpu
()
{
#ifdef ARCH_X86
asm
volatile
(
"pause"
::
:
"memory"
);
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