We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997bd3d commit 94504ffCopy full SHA for 94504ff
backends/qualcomm/runtime/backends/irbackend/aarch64/QnnDlcManager.cpp
@@ -73,7 +73,12 @@ Error QnnDlcManager::RegisterGraphsFromDLC(
73
cache->GetQnnContextBlob();
74
75
// memfd_create on android api level 30 and above
76
- int fd = memfd_create("tmp.dlc", 0);
+ int fd = -1;
77
+ #ifdef __ANDROID__
78
+ #if __ANDROID_API__ >= 30
79
+ fd = memfd_create("tmp.dlc", 0);
80
+ #endif
81
82
if (fd == -1) {
83
QNN_EXECUTORCH_LOG_ERROR("memfd_create fail");
84
return Error::Internal;
0 commit comments