From aa93d98092e9689f945cc84d368f64e46d1455af Mon Sep 17 00:00:00 2001 From: Colm Donelan Date: Sun, 28 Jun 2020 08:16:46 +0100 Subject: IVGCVSW-4487 Remove boot/dll.hpp from dynamic backends test. * Replace the call to boost::dll::program_location() with a cmake variable set at runtime. PROJECT_BINARY_DIR appears to fit the bill. * Fall back to a boost custom CLI to allow it to be user specified. * Add a FAQ entry describing potential problems. * Adding flexibility to GetSharedObjectsTestImpl to cope with sym links in file systems. Signed-off-by: Colm Donelan Change-Id: Iccf3f1b0f2911101e1f61bffd73cefba271bbfe2 --- docs/FAQ.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/FAQ.md b/docs/FAQ.md index 918f4e161a..a4e09d8b7d 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -25,3 +25,7 @@ Adding or removing -Dxxx options when building ArmNN does not always work. --------------------------------------------------------- ArmNN uses CMake for build configuration. CMake uses a cumulative cache of user options. That is, setting a value once on a cmake command line will be persisted until either you explicitly change the value or delete the cache. To delete the cache in ArmNN you must delete the build directory. + +Many DynamicBackendTests fail with "Base path for shared objects does not exist". +--------------------------------------------------------- +This problem most commonly occurs when the compile and runtime environments for the unit tests differ. These dynamic backend tests rely on a set of test files and directories at runtime. These files are created by default during the cmake build. At runtime the tests will look for these files in src/backends/backendsCommon/test/ relative to where the Unittests executable was built. The usual solution to to copy these files and directories into the new unit test execution environment. You can also specify a new root path for these files by adding a command line parameter to the Unittests executable: Unittests -- --dynamic-backend-build-dir "new path" -- cgit v1.2.1