24.07.2013 Views

Utilização de técnicas de análise estática e dinâmica para ... - UFMG

Utilização de técnicas de análise estática e dinâmica para ... - UFMG

Utilização de técnicas de análise estática e dinâmica para ... - UFMG

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Introdução As GPUs Tese Profiling Análise <strong>estática</strong> Otimização<br />

Exemplo: Código divergente<br />

__global__ void<br />

ex (float* v) {<br />

if (v[tid] < 0.0) {<br />

v[tid] /= 2;<br />

} else {<br />

v[tid] = 0.0;<br />

}<br />

}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!