Skip to content

issue with ld libraries  #8

@nehrbash

Description

@nehrbash

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions