Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed fcplugin namespace #2666

Open
wants to merge 2 commits into
base: release/8.6
Choose a base branch
from
Open

Conversation

hsuanguo
Copy link

@hsuanguo hsuanguo commented Feb 10, 2023

The namespace in fcPlugin.cpp which will result in the following error while building it using docker image:
tensorrt8.5.3.1-ubuntu18.04-cuda10.2

In file included from /workspace/TensorRT/plugin/fcPlugin/fcPlugin.cpp:24:0:
/workspace/TensorRT/plugin/fcPlugin/fcPlugin.h: In instantiation of 'void nvinfer1::plugin::bert::LtGemmSearch(cublasLtHandle_t, const nvinfer1::plugin::bert::Gemm<T>&, void*, size_t, std::vector<nvinfer1::plugin::bert::customMatMultPerfType_t>&) [with T = __half; cublasLtHandle_t = cublasLtContext*; size_t = long unsigned int]':
/workspace/TensorRT/plugin/fcPlugin/fcPlugin.h:399:17:   required from 'cublasLtMatmulAlgo_t nvinfer1::plugin::bert::gemmSearch(int, int, int, size_t, size_t&) [with T = __half; size_t = long unsigned int]'
/workspace/TensorRT/plugin/fcPlugin/fcPlugin.cpp:520:96:   required from here
/workspace/TensorRT/plugin/fcPlugin/fcPlugin.h:188:15: error: call of overloaded 'LtGemmSearch(cublasLtContext*&, const cublasOperation_t&, const cublasOperation_t&, const int&, const int&, const int&, const dataTypeS*, nvinfer1::plugin::bert::GemmTypes<__half>::dataTypeI* const&, const int&, nvinfer1::plugin::bert::GemmTypes<__half>::dataTypeI* const&, const int&, const dataTypeS*, nvinfer1::plugin::bert::GemmTypes<__half>::dataTypeO* const&, const int&, void*&, size_t&, const cudaDataType_t&, const cudaDataType_t&, const cudaDataType_t&, const cudaDataType_t&, const cudaDataType_t&, std::vector<nvinfer1::plugin::bert::customMatMultPerfType_t>&)' is ambiguous

This PR fixes it.

Signed-off-by: hsuanguo <hsuan.guo@gmail.com>
Signed-off-by: hsuanguo <hsuan.guo@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants