Mercurial > hg > truffle
comparison src/gpu/ptx/vm/gpu_ptx.cpp @ 13833:fe99bfb55626
disable printing of CUDA errors unless TraceGPUInteraction is enabled
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 31 Jan 2014 00:13:12 +0100 |
parents | ab370d74a8eb |
children | 4ca607fc94e0 |
comparison
equal
deleted
inserted
replaced
13832:ab370d74a8eb | 13833:fe99bfb55626 |
---|---|
410 bool check(int status, const char *action) { | 410 bool check(int status, const char *action) { |
411 if (status != GRAAL_CUDA_SUCCESS) { | 411 if (status != GRAAL_CUDA_SUCCESS) { |
412 Thread* THREAD = _thread; | 412 Thread* THREAD = _thread; |
413 char* message = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, O_BUFLEN + 1); | 413 char* message = NEW_RESOURCE_ARRAY_IN_THREAD(THREAD, char, O_BUFLEN + 1); |
414 jio_snprintf(message, O_BUFLEN, "[CUDA] *** Error (status=%d): %s", status, action); | 414 jio_snprintf(message, O_BUFLEN, "[CUDA] *** Error (status=%d): %s", status, action); |
415 if (TraceGPUInteraction || HAS_PENDING_EXCEPTION) { | 415 if (TraceGPUInteraction) { |
416 tty->print_cr(message); | 416 tty->print_cr(message); |
417 } | 417 } |
418 if (!HAS_PENDING_EXCEPTION) { | 418 if (!HAS_PENDING_EXCEPTION) { |
419 SharedRuntime::throw_and_post_jvmti_exception(_thread, vmSymbols::java_lang_RuntimeException(), message); | 419 SharedRuntime::throw_and_post_jvmti_exception(_thread, vmSymbols::java_lang_RuntimeException(), message); |
420 } | 420 } |