summaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
diff options
context:
space:
mode:
authorGeir Storli <geirst@verizonmedia.com>2019-03-14 10:56:44 +0000
committerGeir Storli <geirst@verizonmedia.com>2019-03-14 10:56:44 +0000
commita874b7f238e04c7d6a83b0ebbb404a1a54c4cb03 (patch)
tree24ec3fbf42b5e16cbffb783c3f61c2abcc835174 /searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
parente1c88ac18ff874a509b67540bb99b223d5bc5c07 (diff)
Enable free lists when each dense tensor use the same amount of memory (all dimensions are bound).
Diffstat (limited to 'searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp')
-rw-r--r--searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
index 2e339a069b6..bd814b0ad32 100644
--- a/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
+++ b/searchlib/src/tests/attribute/tensorattribute/tensorattribute_test.cpp
@@ -307,6 +307,10 @@ Fixture::testSaveLoad()
void
Fixture::testCompaction()
{
+ if (_useDenseTensorAttribute && _denseTensors && !_cfg.tensorType().is_abstract()) {
+ LOG(info, "Skipping compaction test for tensor '%s' which is using free-lists", _cfg.tensorType().to_spec().c_str());
+ return;
+ }
ensureSpace(4);
Tensor::UP emptytensor = _tensorAttr->getEmptyTensor();
Tensor::UP emptyxytensor = createTensor({}, {"x", "y"});