Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Klepl Jiří
asgn
Commits
17a281a9
Commit
17a281a9
authored
Mar 20, 2020
by
Bednárek David RNDr. Ph.D.
Browse files
corrected ifdef USE_AVX blocks
parent
e238abd6
Changes
2
Hide whitespace changes
Inline
Side-by-side
asgn/levenasgn.hpp
View file @
17a281a9
...
...
@@ -108,12 +108,8 @@ namespace levensol {
struct
policy_scalar
;
struct
policy_sse
;
#ifdef USE_AVX
struct
policy_avx
;
#endif
#ifdef USE_AVX512
struct
policy_avx512
;
#endif
};
namespace
levenmain
{
...
...
@@ -132,23 +128,19 @@ namespace levenmain {
using
policy
=
levensol
::
policy_sse
;
};
#ifdef USE_AVX
struct
platform_avx
{
using
tag_category
=
fmwkng
::
platform_tag_category
;
static
auto
name
()
{
return
"avx"
;
}
static
auto
code_name
()
{
return
"levenmain::platform_avx"
;
}
using
policy
=
levensol
::
policy_avx
;
};
#endif
#ifdef USE_AVX512
struct
platform_avx512
{
using
tag_category
=
fmwkng
::
platform_tag_category
;
static
auto
name
()
{
return
"avx512"
;
}
static
auto
code_name
()
{
return
"levenmain::platform_avx512"
;
}
using
policy
=
levensol
::
policy_avx512
;
};
#endif
struct
a_size
{
using
tag_category
=
fmwkng
::
range_tag_category
;
...
...
asgn/macroasgn.hpp
View file @
17a281a9
...
...
@@ -53,12 +53,8 @@ namespace macrosol {
struct
policy_scalar
;
struct
policy_sse
;
#ifdef USE_AVX
struct
policy_avx
;
#endif
#ifdef USE_AVX512
struct
policy_avx512
;
#endif
};
namespace
macromain
{
...
...
@@ -76,23 +72,19 @@ namespace macromain {
using
policy
=
macrosol
::
policy_sse
;
};
#ifdef USE_AVX
struct
platform_avx
{
using
tag_category
=
fmwkng
::
platform_tag_category
;
static
auto
name
()
{
return
"avx"
;
}
static
auto
code_name
()
{
return
"macromain::platform_avx"
;
}
using
policy
=
macrosol
::
policy_avx
;
};
#endif
#ifdef USE_AVX512
struct
platform_avx512
{
using
tag_category
=
fmwkng
::
platform_tag_category
;
static
auto
name
()
{
return
"avx512"
;
}
static
auto
code_name
()
{
return
"macromain::platform_avx512"
;
}
using
policy
=
macrosol
::
policy_avx512
;
};
#endif
struct
nonmacro_weight
{
using
tag_category
=
fmwkng
::
range_tag_category
;
...
...
Write
Preview
Supports
Markdown
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