Hi,
While trying to use QNN, I run into errors with installation of the SDK on Ubuntu.
I can download a .qik file for either v2.10.40.4 or v2.11.0.230603 from https://qpm.qualcomm.com/#/main/tools/details/qualcomm_ai_engine_direct
I found that the way to use this file is through the QIK tool of QPM. I installed QPM v2.33.2 for Linux and tried to use the qik EXTRACT or qik INSTALL commands, however both fail (silently) with the following log file written in /var/tmp/qcom/qik/logs/, and mentioning an XML error for the package: "SDK is not a valid value for ProductType"
2023-06-12 16:42:34.688 INFO QIKTool === STARTING QIK v1.0.11.15, PID 3342458 ===========================================================2023-06-12 16:42:34.695 INFO QIKTool Command Line: /opt/qcom/qik/bin/qik.dll EXTRACT qualcomm_ai_engine_direct.2.10.40.4.Linux-AnyCPU.qik2023-06-12 16:42:34.702 INFO QIKTool Loading Package: /home/user/Downloads/Qualcomm/qualcomm_ai_engine_direct.2.10.40.4.Linux-AnyCPU.qik2023-06-12 16:42:34.702 INFO QIKTool Checking QIK package2023-06-12 16:42:34.722 INFO QIKTool Processing package data2023-06-12 16:42:34.795 EXCEPTION QIKTool Exception reading QIKPackage dataSystem.InvalidOperationException: There is an error in XML document (23, 6). ---> System.InvalidOperationException: Instance validation error: 'SDK' is not a valid value for ProductType.at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderQIKPackage.Read2_ProductType(String s)at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderQIKPackage.Read8_QIKPackageInfo(Boolean isNullable, Boolean checkType)at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderQIKPackage.Read14_QIKPackage(Boolean isNullable, Boolean checkType)at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderQIKPackage.Read15_QIKPackage()--- End of inner exception stack trace ---at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)at System.Xml.Serialization.XmlSerializer.Deserialize(Stream stream)at QIKLibraryCore.QCCReader.ReadObject[T](Int32 blockID, Boolean useXMLSerializer)at QIKLibraryCore.PackageLoader.readQIKPackage()2023-06-12 16:42:34.795 INFO QIKTool === EXITING, exitcode: 5 (ReadError) ===========================================================
Is it the proper way to use/instal the QNN SDK? How to work around this error?
Thanks for your help,
Aurelien
Update: I was trying to use the QIK tool directly to work around the incompatibility of QPM with Ubuntu 22.04. There is probably a way to install / extract the .qik file via the command line QPM (qpm-cli) but I ended up getting a zip archive for the QNN SDK at https://www.qualcomm.com/support/software-tools/tools.qualcomm-neural-ne... and gave up on QIK/QPM for now
Where is qualcomm developer relations? It's so difficult to use SNPE on devkit 2023's WSL!
If you are still having trouble with this I suggest following this steps. after downloading Qualcomm Package Manager 3 and using
sudo dpkg -i QualcommPackageManager<version>
From the terminal