Commit 242008ce authored by Peter Steinbach's avatar Peter Steinbach

added levels_available API

parent 6e1ebaa0
......@@ -34,8 +34,12 @@ TEST_CASE( "compass_fundamentals" ){
SECTION( "compass_yields_non_zero_L1size" ){
auto value = compass::runtime::size::cacheline::level(1);
REQUIRE(value>0u);
if(compass::runtime::size::cache::levels_available()){
auto value = compass::runtime::size::cache::level(1);
REQUIRE(value>0u);
} else {
SUCCEED("no cache architecture available on this host");
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment