Mercurial > hg > truffle
comparison src/gpu/ptx/vm/gpu_ptx.cpp @ 11634:bff2b88444f5
Start of PTX array passing
author | Morris Meyer <morris.meyer@oracle.com> |
---|---|
date | Sat, 14 Sep 2013 17:31:25 -0400 |
parents | 4f69a5189e77 |
children | d8659ad83fcc |
comparison
equal
deleted
inserted
replaced
11633:a0566c8dcabf | 11634:bff2b88444f5 |
---|---|
168 | 168 |
169 /* Create CUDA context to compile and execute the kernel */ | 169 /* Create CUDA context to compile and execute the kernel */ |
170 int status = _cuda_cu_ctx_create(&_device_context, 0, _cu_device); | 170 int status = _cuda_cu_ctx_create(&_device_context, 0, _cu_device); |
171 | 171 |
172 if (status != GRAAL_CUDA_SUCCESS) { | 172 if (status != GRAAL_CUDA_SUCCESS) { |
173 tty->print_cr("[CUDA] Failed to create CUDA context for device: %d", _cu_device); | 173 tty->print_cr("[CUDA] Failed to create CUDA context for device(%d): %d", _cu_device, status); |
174 return NULL; | 174 return NULL; |
175 } | 175 } |
176 | 176 |
177 if (TraceGPUInteraction) { | 177 if (TraceGPUInteraction) { |
178 tty->print_cr("[CUDA] Success: Created context for device: %d", _cu_device); | 178 tty->print_cr("[CUDA] Success: Created context for device: %d", _cu_device); |