Merge pull request #1759 from SChernykh/dev
Fixed DAG initialization on slower AMD GPUs
This commit is contained in:
commit
aa5a7c3c13
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ void OclKawPowRunner::set(const Job &job, uint8_t *blob)
|
||||||
const uint32_t dag_words = dag_size / sizeof(node);
|
const uint32_t dag_words = dag_size / sizeof(node);
|
||||||
m_calculateDagKernel->setArgs(0, m_lightCache, m_dag, dag_words, m_lightCacheSize / sizeof(node));
|
m_calculateDagKernel->setArgs(0, m_lightCache, m_dag, dag_words, m_lightCacheSize / sizeof(node));
|
||||||
|
|
||||||
constexpr uint32_t N = 1 << 20;
|
constexpr uint32_t N = 1 << 18;
|
||||||
|
|
||||||
for (uint32_t start = 0; start < dag_words; start += N) {
|
for (uint32_t start = 0; start < dag_words; start += N) {
|
||||||
m_calculateDagKernel->setArg(0, sizeof(start), &start);
|
m_calculateDagKernel->setArg(0, sizeof(start), &start);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue