Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sebastian Bindgen
pystencils
Commits
7c2af9ad
Commit
7c2af9ad
authored
5 years ago
by
Michael Kuron
Browse files
Options
Downloads
Patches
Plain Diff
Philox: correct AVX512 guards
parent
274a9630
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pystencils/include/philox_rand.h
+4
-4
4 additions, 4 deletions
pystencils/include/philox_rand.h
with
4 additions
and
4 deletions
pystencils/include/philox_rand.h
+
4
−
4
View file @
7c2af9ad
...
...
@@ -146,7 +146,7 @@ QUALIFIERS void _philox4x32bumpkey(__m128i* key)
QUALIFIERS
__m128
_my_cvtepu32_ps
(
const
__m128i
v
)
{
#if
def
ined(
__AVX512VL__
) || defined(__AVX512F__)
#ifdef
__AVX512VL__
return
_mm_cvtepu32_ps
(
v
);
#else
__m128i
v2
=
_mm_srli_epi32
(
v
,
1
);
...
...
@@ -157,7 +157,7 @@ QUALIFIERS __m128 _my_cvtepu32_ps(const __m128i v)
#endif
}
#if !defined(__AVX512VL__)
&& !defined(__AVX512F__)
&& defined(__GNUC__) && __GNUC__ >= 5
#if !defined(__AVX512VL__) && defined(__GNUC__) && __GNUC__ >= 5
__attribute__
((
optimize
(
"no-associative-math"
)))
#endif
QUALIFIERS
__m128d
_my_cvtepu64_pd
(
const
__m128i
x
)
...
...
@@ -303,7 +303,7 @@ QUALIFIERS void _philox4x32bumpkey(__m256i* key)
QUALIFIERS
__m256
_my256_cvtepu32_ps
(
const
__m256i
v
)
{
#if
def
ined(
__AVX512VL__
) || defined(__AVX512F__)
#ifdef
__AVX512VL__
return
_mm256_cvtepu32_ps
(
v
);
#else
__m256i
v2
=
_mm256_srli_epi32
(
v
,
1
);
...
...
@@ -314,7 +314,7 @@ QUALIFIERS __m256 _my256_cvtepu32_ps(const __m256i v)
#endif
}
#if !defined(__AVX512VL__) &&
!defined(__AVX512F__) &&
defined(__GNUC__) && __GNUC__ >= 5
#if !defined(__AVX512VL__) && defined(__GNUC__) && __GNUC__ >= 5
__attribute__
((
optimize
(
"no-associative-math"
)))
#endif
QUALIFIERS
__m256d
_my256_cvtepu64_pd
(
const
__m256i
x
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment