Open asaff1 opened 5 months ago
@nvda-mesharma for viz
Any update?
Also curious to the answer.
The parts that depends on Triton core library is linking against the stub library as you can see in the CMakeLists.txt
(triton-core-serverstub
). I don't think it is a hack to replace the stub library with the real one for execution.
That being said, it's possible that the CMake file can be improved to expose triton-core
as target, which may point to either the stub library or the real one depending on whether TRITON_CORE_HEADERS_ONLY
is set. CC @fpetrini15
Description Would like to know what is the way to include libtritonserver in a project. I did a build of triton developer tools with
-DTRITON_CORE_HEADERS_ONLY=OFF
so I get an install/ directory withNow, in my project's CMakeLists I have:
and:
It does compile and I can run my project, but it uses the stub library so I cannot actually use triton functions. If I remove the
stubs/libtritonserver.so
the project does not compile. So I assume cmake is looking for the stub lib instead of the "real" one. I tried to replacestubs/libtritonserver.so
with the real library - then everything works fine and the real library is used, but I think this is a hack and not how it should be used.I believe that
triton-developer_tools-server
is including the stub, because in my cmakelist I don't include the stub. How can I tell cmake to use the real library instead of the stub?Triton Information 24.03
Are you using the Triton container or did you build it yourself? Build myself