I run those two executes from directory SDK-precompiled-samples and I export LD_LIBRARY_PATH as SDK-precompiled-samples otherwise it can not find libsutil_sdk.so. I am trying to use strace.
I build the SDK on local machine and run $ strace ./optixRaycasting. It tells that libnvoptix-sdk.so.1 is missing. And the ending part of strace output is :
open(“tls/libnvoptix-sdk.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“x86_64/libnvoptix-sdk.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“libnvoptix-sdk.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“/etc/ld.so.cache”, O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=214066, …}) = 0
mmap(NULL, 214066, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2af878baa000
close(3) = 0
access(“/etc/ld.so.nohwcap”, F_OK) = -1 ENOENT (No such file or directory)
open(“/lib/x86_64-linux-gnu/libnvoptix-sdk.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“/usr/lib/x86_64-linux-gnu/libnvoptix-sdk.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“/lib/libnvoptix-sdk.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
open(“/usr/lib/libnvoptix-sdk.so.1”, O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
munmap(0x2af878baa000, 214066) = 0
futex(0x2af87a26d1a0, FUTEX_WAKE_PRIVATE, 2147483647) = 0
write(2, “Failed to load OptiX library”, 28) = 28
write(2, “\n”, 1) = 1
exit_group(1) = ?
+++ exited with 1 +++