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

feat(dipu,droplet): add error message when tangEventQuery failed #759

Merged

Conversation

lljbash
Copy link
Collaborator

@lljbash lljbash commented Apr 1, 2024

cannot reuse DIPU_CALLDROPLET due to special handling of NotReady

#define DIPU_CALLDROPLET(Expr)                                            \
  {                                                                       \
    tangError_t ret = Expr;                                               \
    if (ret != tangSuccess) {                                             \
      printf("call a tangrt function (%s) failed. return code=%d", #Expr, \
             ret);                                                        \
      throw std::runtime_error("dipu device error");                      \
    }                                                                     \
  }

@lljbash lljbash added DIPU DIPU related enhancement New feature or request labels Apr 1, 2024
@lljbash lljbash force-pushed the llj/enhance-droplet-error-handling branch from d8cba8f to 29795e1 Compare April 2, 2024 09:10
@mrdanielw mrdanielw merged commit 8542a62 into DeepLink-org:main Apr 3, 2024
29 checks passed
xuq7410 pushed a commit to xuq7410/deeplink.framework that referenced this pull request May 23, 2024
switch variable name
tensor1, tensor2 -> tensor_dev, tensor_ref
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DIPU DIPU related enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants