Open main menu
CDOT Wiki
β
Search
Changes
← Older edit
Newer edit →
BetaT
11 bytes added
,
18:11, 29 March 2017
→
Optimizing Problems
for (int k = 0; k <= nx - 1; k++) if (k*dx >= 0.5 && k*dx <= 1)
{
u[k * nt] = 2;
__syncthreads();
}
else
{
u[k * nt] = 1;
__syncthreads();
}
}
'''
Jadach1
212
edits