Mercurial > hg > graal-jvmci-8
comparison src/gpu/ptx/vm/gpu_ptx.cpp @ 11902:67a1e27a8dbb
PTX initial float and double
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Sun, 06 Oct 2013 22:07:23 -0400 |
parents | 61767ccd4600 |
children | f020e149c1b6 |
comparison
equal
deleted
inserted
replaced
11901:61767ccd4600 | 11902:67a1e27a8dbb |
---|---|
411 if (status != GRAAL_CUDA_SUCCESS) { | 411 if (status != GRAAL_CUDA_SUCCESS) { |
412 tty->print_cr("[CUDA] *** Error (%d) Failed to copy value to device argument", status); | 412 tty->print_cr("[CUDA] *** Error (%d) Failed to copy value to device argument", status); |
413 return false; | 413 return false; |
414 } | 414 } |
415 ret.set_jfloat(return_val); | 415 ret.set_jfloat(return_val); |
416 } | |
417 break; | |
418 case T_DOUBLE: | |
419 { | |
420 double return_val; | |
421 status = gpu::Ptx::_cuda_cu_memcpy_dtoh(&return_val, ptxka._return_value_ptr, T_DOUBLE_BYTE_SIZE); | |
422 if (status != GRAAL_CUDA_SUCCESS) { | |
423 tty->print_cr("[CUDA] *** Error (%d) Failed to copy value to device argument", status); | |
424 return false; | |
425 } | |
426 ret.set_jdouble(return_val); | |
416 } | 427 } |
417 break; | 428 break; |
418 case T_LONG: | 429 case T_LONG: |
419 { | 430 { |
420 long return_val; | 431 long return_val; |