Mercurial > hg > graal-compiler
diff src/share/vm/runtime/thread.cpp @ 13731:9161ed8ce796
Add graal-specific option -XX:+GPUOffload to trigger all GPU offload functionality. Cleanup function to decide GPU offload. Exclude GPU sources from nongraal builds.
author | S.Bharadwaj Yadavalli <bharadwaj.yadavalli@oracle.com> |
---|---|
date | Wed, 22 Jan 2014 16:06:47 -0500 |
parents | e0102f250d76 |
children | ac1e626432f9 |
line wrap: on
line diff
--- a/src/share/vm/runtime/thread.cpp Wed Jan 22 15:27:31 2014 +0100 +++ b/src/share/vm/runtime/thread.cpp Wed Jan 22 16:06:47 2014 -0500 @@ -3394,9 +3394,13 @@ jint parse_result = Arguments::parse(args); if (parse_result != JNI_OK) return parse_result; - // Probe for existance of supported GPU and initialize it if one - // exists. - gpu::init(); +#ifdef GRAAL + if (GPUOffload) { + // Probe for existance of supported GPU and initialize it if one + // exists. + gpu::init(); + } +#endif os::init_before_ergo();