← 返回首页
Use short function name in non-debug builds in error messages by 9prady9 · Pull Request #3060 · arrayfire/arrayfire · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Use short function name in non-debug builds in error messages#3060

Merged
9prady9 merged 1 commit into
arrayfire:masterfrom
9prady9:issue3053
Jan 11, 2021
Merged

Use short function name in non-debug builds in error messages#3060
9prady9 merged 1 commit into
arrayfire:masterfrom
9prady9:issue3053

Conversation

Copy link
Copy Markdown
Member

9prady9 commented Dec 8, 2020

Description

Prior to this, error message from an exception would look like below

In function af_err af_transpose_inplace(af_array, bool) In file src/api/c/transpose.cpp:97

Earlier approach was hindering any useful log messages, especially from
runtime(like nvrtc) compilation phase, to be properly captured by
by the string returned by af_get_last_error function call.

Now it would look the same in debug builds but for release builds it
shall look like as following

In function af_transpose_inplace In file src/api/c/transpose.cpp:97

Fixes: #3053

Changes to Users

Issues such as the ones mentioned in #3053 will be fixed.

Checklist

  • Rebased on latest master
  • Code compiles
  • Tests pass
  • [ ] Functions added to unified API
  • [ ] Functions documented

Prior to this, error message from an exception would look like below In function af_err af_transpose_inplace(af_array, bool) In file src/api/c/transpose.cpp:97 Earlier approach was hindering any useful log messages, especially from runtime(like nvrtc) compilation phase, to be properly captured by by the string returned by af_get_last_error function call. Now it would look the same in debug builds but for release builds it shall look like as following In function af_transpose_inplace In file src/api/c/transpose.cpp:97
9prady9 added the fix label Dec 8, 2020
9prady9 added this to the 3.8.1 milestone Dec 8, 2020
9prady9 requested a review from umar456 December 8, 2020 12:11
9prady9 merged commit 0efcbc0 into arrayfire:master Jan 11, 2021
9prady9 deleted the issue3053 branch January 11, 2021 16:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Error messages from NVRTC are truncated

2 participants

Footer

© 2026 GitHub, Inc.