Closed petertorelli closed 5 years ago
Recommend to use TF1.13.1, TRT5.1.2, CUDA10.0, and version 410 of the driver. Although issues still reported.
Deferred until TRT6 target is released in 1.0.x.
Appears related to these lines of code in the Net.py
files for each model which import the library:
resnetnet_lib=os.path.join(TRT_DIR,"cpp_environment","libs","libclass_resnet50.so")
self.lib = cdll.LoadLibrary(resnetnet_lib)
self.obj = self.lib.return_object()
Adding this line (prior to the self.lib.return_obect()
call):
self.lib.return_object.restype = ctypes.c_ulonglong
Fixes the problem on the target system. Since restype
is a pointer, this was causing truncation errors. However, casting to ulonglong
might introduce compatibility errors, need to investigate a pointer type instead that matches OS/arch.
New branch trt-restype
in progress.
The latest two merges (#7 and #8 ) solve T4-related problems on non-Jetpack OSes.
User reports that MLMark abruptly segfaults when running TensorRT target on an x86 System with a Tesla T4, and not other warning messages given. See below.