Question: i want to copy a sqlite db to the database folder but dont know how to use copyto api:

```
function win(entry) {
console.log("New Path: " + entry.fullPath);
}

function fail(error) {
 alert(error.code);
}

function copyFile(entry) {
 var parent = document.getElementById('parent').value,
    parentEntry = new DirectoryEntry({fullPath: parent});

 // copy the file to a new directory and rename it
 entry.copyTo(parentEntry, "file.copy", success, fail);
}

```

what is entry? where to i have to write my db path form assets folder? is it mistyping that in the last line it said success but didn't define it? do i have to write win instead?

Answer: 
In order of suitability from least suitable to most suitable:

* GPUs can only accelerate SIMD type workloads, so they are no good for task-parallel operations (like make -jN).
* GPUs don't have much cache and their atomic ops are relatively slow compared to CPUs; so they are nowhere near as good as CPUs with pointer-based structures such as trees.
* Workloads such as image processing or computer vision are in a gray area where the GPU advantages (texture mapping hardware, more cores) may be offset by the CPU advantages (better SIMD integer support, much higher clock rate). If the actual processing is done in floating point, it's probably a wash or slight advantage to the GPU; if the processing is done in integer and can be mapped onto SSE2 instructions, the CPU will crush the GPU.

GPUs excel at data-parallel workloads that use a lot of single-precision floating-point.

Any workload getting offloaded to the GPU also incurs data transfer costs.
Some guys at Intel did some research, where they compared scientific computations on modern multi-core CPUs and GPUs. Maybe you find that interesting. Figure 1 on page 5 shows the results.

Lee et al, "Debunking the 100X GPU vs. CPU Myth: An Evaluation of Throughput Computing on CPU and GPU":
<http://www.hwsw.hu/kepek/hirek/2010/06/p451-lee.pdf>