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

Modify tacticSources #513

Open
austinmw opened this issue Feb 26, 2021 · 5 comments
Open

Modify tacticSources #513

austinmw opened this issue Feb 26, 2021 · 5 comments

Comments

@austinmw
Copy link

With trtexec I need to add --tacticSources=-cublasLt,+cublas to compile my model, or else I get:

[TensorRT] INTERNAL ERROR: Assertion failed: cublasStatus == CUBLAS_STATUS_SUCCESS

How can I do this in torch2trt?

@jaybdub
Copy link
Contributor

jaybdub commented Feb 28, 2021

Hi @austinmw ,

Thanks for reaching out!

Currently this isn’t exposed, but it seems like a relatively straightforward feature for us to add. Particularly, after the following PR for DLA support is merged, torch2trt will use a builder config, so I can just pass an extra argument.

#507

I will try to notify you here of any updates, or if I discover anything along way.

Best,
John

@austinmw
Copy link
Author

Thanks!

@JonasKonrad
Copy link

JonasKonrad commented May 6, 2021

I have been asking for TRT/PyTorch version recommendations for torch2trt in Discussions ("version (mis)match overview"). However, there is none so far. This issue seems to be linked to such a recommendation, as the default tactics has been changed from cuBLAS to cuBLASLt as of TRT 7.2.1 (see here).
Can you confirm @austinmw ?

Edit: It's stated here, that this already applies for TRT 7.2(.0).

Best,
Jonas

@azuryl
Copy link

azuryl commented Jan 15, 2022

straightforward feature for us to add

@jaybdub hello jay can you tell me how to add it

Thank you

@azuryl
Copy link

azuryl commented Jan 15, 2022

With trtexec I need to add --tacticSources=-cublasLt,+cublas to compile my model, or else I get:

[TensorRT] INTERNAL ERROR: Assertion failed: cublasStatus == CUBLAS_STATUS_SUCCESS

How can I do this in torch2trt?
@austinmw
config = builder.create_builder_config()
config.set_tactic_sources(1 << int(trt.TacticSource.CUBLAS))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants