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

How to profile cuDLA computation #31

Open
angry-crab opened this issue Mar 21, 2024 · 3 comments
Open

How to profile cuDLA computation #31

angry-crab opened this issue Mar 21, 2024 · 3 comments
Assignees
Labels
question Further information is requested

Comments

@angry-crab
Copy link

Hi,
I tried to profile DLA according to this tutorial.
https://github.com/NVIDIA-AI-IOT/jetson_dla_tutorial

But I got
Error[1]: [runtime.cpp::parsePlan::314] Error Code 1: Serialization (Serialization assertion plan->header.magicTag == rt::kPLAN_MAGIC_TAG failed.)

It seems that TensorRT cannot serialized the loadable somehow. Some posts said this was because of mismatch of TensorRT versions, but I was using the same TensorRT for building and inferring.

Therefore, I was wondering if there is a way to profile cuDLA. Thanks.

@lynettez
Copy link
Collaborator

Hi @angry-crab, TensorRT can only build the loadable, but is unable to load it. We should use cuDLA API to load and execute it,
cuDLA samples can be found in https://github.com/NVIDIA/cuda-samples/tree/master/Samples/4_CUDA_Libraries/cuDLAHybridMode and https://github.com/NVIDIA/cuda-samples/tree/master/Samples/4_CUDA_Libraries/cuDLAStandaloneMode

@lynettez lynettez added the question Further information is requested label Mar 25, 2024
@lynettez lynettez self-assigned this Mar 25, 2024
@angry-crab
Copy link
Author

Hi @angry-crab, TensorRT can only build the loadable, but is unable to load it. We should use cuDLA API to load and execute it, cuDLA samples can be found in https://github.com/NVIDIA/cuda-samples/tree/master/Samples/4_CUDA_Libraries/cuDLAHybridMode and https://github.com/NVIDIA/cuda-samples/tree/master/Samples/4_CUDA_Libraries/cuDLAStandaloneMode

Hi,
thank you for the info. However, I would like to profile cuDLA internal computations, such matmul, conv, etc. Is there a way to do that?

@lynettez
Copy link
Collaborator

lynettez commented Sep 2, 2024

sorry for the late reply. @angry-crab here are the samples that used to provide layerwise statistics to the application.
https://github.com/NVIDIA/Deep-Learning-Accelerator-SW/tree/main/samples/cuDLA
Please check if cudlaExternalEtbl.hpp is available on your platform. Layer-wise profiling is a new feature that may not be supported on some older platforms.

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

No branches or pull requests

2 participants