File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -349,9 +349,14 @@ extern "C" {
349
349
__device__ int vprintf (const char *, const char *);
350
350
__device__ void free (void *) __attribute((nothrow));
351
351
__device__ void *malloc (size_t ) __attribute((nothrow)) __attribute__((malloc));
352
+
353
+ // __assertfail() used to have a `noreturn` attribute. Unfortunately that
354
+ // contributed to triggering the longstanding bug in ptxas when assert was used
355
+ // in sufficiently convoluted code. See
356
+ // https://bugs.llvm.org/show_bug.cgi?id=27738 for the details.
352
357
__device__ void __assertfail (const char *__message, const char *__file,
353
358
unsigned __line, const char *__function,
354
- size_t __charSize) __attribute__((noreturn)) ;
359
+ size_t __charSize);
355
360
356
361
// In order for standard assert() macro on linux to work we need to
357
362
// provide device-side __assert_fail()
You can’t perform that action at this time.
0 commit comments