go-tensorrt icon indicating copy to clipboard operation
go-tensorrt copied to clipboard

issue with ld libraries

Open nehrbash opened this issue 4 years ago • 1 comments

While trying to get the package go get -v github.com/rai-project/go-tensorrt it failed with the following.

github.com/rai-project/dlframework
github.com/rai-project/go-cupti
# github.com/rai-project/dlframework
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:295:65: too many arguments in call to "github.com/grpc-ecosystem/grpc-gateway/runtime".NewPattern
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:295:121: undefined: "github.com/grpc-ecosystem/grpc-gateway/runtime".AssumeColonVerbOpt
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:297:66: too many arguments in call to "github.com/grpc-ecosystem/grpc-gateway/runtime".NewPattern
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:297:123: undefined: "github.com/grpc-ecosystem/grpc-gateway/runtime".AssumeColonVerbOpt
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:299:65: too many arguments in call to "github.com/grpc-ecosystem/grpc-gateway/runtime".NewPattern
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:299:121: undefined: "github.com/grpc-ecosystem/grpc-gateway/runtime".AssumeColonVerbOpt
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:301:67: too many arguments in call to "github.com/grpc-ecosystem/grpc-gateway/runtime".NewPattern
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:301:125: undefined: "github.com/grpc-ecosystem/grpc-gateway/runtime".AssumeColonVerbOpt
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:303:68: too many arguments in call to "github.com/grpc-ecosystem/grpc-gateway/runtime".NewPattern
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:303:127: undefined: "github.com/grpc-ecosystem/grpc-gateway/runtime".AssumeColonVerbOpt
go/src/github.com/rai-project/dlframework/predictor.pb.gw.go:303:68: too many errors
# github.com/rai-project/go-cupti
/usr/bin/ld: cannot find -lcudart
/usr/bin/ld: cannot find -lcupti
collect2: error: ld returned 1 exit status

This looks like an error with dlframework and go-cupti. I have been looking into the error with lcupti. I have read the README and noted I don't have /usr/local/cuda/extras/CUPTI/lib64 instead they are located with the other /usr/local/cuda/ .so files. I am not that experienced with c++/c but I am fairly sure these libraries are in my LD_LIBRARY_PATH and I checked with:

$ echo $LD_LIBRARY_PATH
/usr/local/cuda-10.2/lib64:

$ ldconfig -p | grep libcudart
        libcudart.so.10.2 (libc6,AArch64) => /usr/local/cuda-10.2/targets/aarch64-linux/lib/libcudart.so.10.2
        libcudart.so (libc6,AArch64) => /usr/local/cuda-10.2/targets/aarch64-linux/lib/libcudart.so

$ ldconfig -p | grep libcupti
        libcupti.so.10.2 (libc6,AArch64) => /usr/local/cuda-10.2/targets/aarch64-linux/lib/libcupti.so.10.2
        libcupti.so (libc6,AArch64) => /usr/local/cuda-10.2/targets/aarch64-linux/lib/libcupti.so

Some background I am on a arm64 system. In particular a agx xavier developer kit. ubuntu-18.04. cuda 10.2 and tensorRT were both installed via NVIDIA Jetpack SDK Manager.

Any thoughts on what my problem might be would be greatly apricated :)

nehrbash avatar Dec 09 '20 17:12 nehrbash

Just attempted to go get using mod file and received this error

go: downloading github.com/rai-project/go-tensorrt v0.4.0
go get github.com/rai-project/go-tensorrt: github.com/rai-project/[email protected]: verifying module: checksum mismatch
        downloaded: h1:mBpLceJRFuB/RnShn/tc43SP+O0tt/O1oqRFT41K7M4=
        sum.golang.org: h1:JQEWfdOEaPNcgL99SA/m16tSyr2w/Cua3n/JAA6/qiI=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.

nehrbash avatar Dec 09 '20 18:12 nehrbash