Skip to content

Assertion on the device is not captured by the host #48395

@shiltian

Description

@shiltian
Bugzilla Link 49051
Resolution FIXED
Resolved on Feb 12, 2021 16:28
Version unspecified
OS All
Blocks #48246
Fixed by commit(s) b68a6b0 716eef9

Extended Description

D95282 optimized the host runtime that if the kernel doesn't have any argument, there is no post data processing after launching the kernel, including device synchronization. Then if the kernel raises any error, like the following example shows, host cannot capture it.

#pragma omp target { assert(0); } 

Metadata

Metadata

Assignees

Labels

bugzillaIssues migrated from bugzillaopenmp

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions