Skip to content

Commit

Permalink
try more known vulkan library with simplevk (#5396)
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui authored Apr 1, 2024
1 parent 2f65729 commit 7cc8910
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/simplevk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,12 @@ static int load_vulkan_linux(const char* driver_path)
#endif

void* libvulkan = dlopen(libpath, RTLD_LOCAL | RTLD_NOW);
#if !__APPLE__
if (!libvulkan)
{
libvulkan = dlopen("libvulkan.so.1", RTLD_LOCAL | RTLD_NOW);
}
#endif
if (!libvulkan)
{
NCNN_LOGE("dlopen failed %s", dlerror());
Expand Down

0 comments on commit 7cc8910

Please sign in to comment.