Mercurial > hg > truffle
comparison 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 |
comparison
equal
deleted
inserted
replaced
13730:168976cae9ce | 13731:9161ed8ce796 |
---|---|
3392 | 3392 |
3393 // Parse arguments | 3393 // Parse arguments |
3394 jint parse_result = Arguments::parse(args); | 3394 jint parse_result = Arguments::parse(args); |
3395 if (parse_result != JNI_OK) return parse_result; | 3395 if (parse_result != JNI_OK) return parse_result; |
3396 | 3396 |
3397 // Probe for existance of supported GPU and initialize it if one | 3397 #ifdef GRAAL |
3398 // exists. | 3398 if (GPUOffload) { |
3399 gpu::init(); | 3399 // Probe for existance of supported GPU and initialize it if one |
3400 // exists. | |
3401 gpu::init(); | |
3402 } | |
3403 #endif | |
3400 | 3404 |
3401 os::init_before_ergo(); | 3405 os::init_before_ergo(); |
3402 | 3406 |
3403 jint ergo_result = Arguments::apply_ergo(); | 3407 jint ergo_result = Arguments::apply_ergo(); |
3404 if (ergo_result != JNI_OK) return ergo_result; | 3408 if (ergo_result != JNI_OK) return ergo_result; |