Skip to content

Commit 15d28c1

Browse files
author
Pekka Jääskeläinen
authored
Merge pull request pocl#1740 from pjaaskel/fix-dyn-wg-size-computation
Fix wrong computation of dynamic WG size
2 parents a21a215 + e965663 commit 15d28c1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/llvmopencl/WorkitemHandler.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ llvm::AllocaInst *WorkitemHandler::createAlignedAndPaddedContextAlloca(
515515
GlobalVariable *LocalSize;
516516
LoadInst *LocalSizeLoad[3];
517517
for (int i = 0; i < 3; ++i) {
518-
std::string Name = LID_G_NAME(i);
518+
std::string Name = LS_G_NAME(i);
519519
LocalSize = cast<GlobalVariable>(M->getOrInsertGlobal(Name, ST));
520520
LocalSizeLoad[i] = Builder.CreateLoad(ST, LocalSize);
521521
}

tests/regression/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,7 @@ set_tests_properties(
160160
set_tests_properties(
161161
"regression/test_program_from_binary_with_local_1_1_1_${VARIANT}"
162162
PROPERTIES
163-
# TO FIX: This test fails with outer loop vectorization. It's likely
164-
# confused by diverging code inside the built-in function call.
165-
ENVIRONMENT "POCL_WORK_GROUP_SPECIALIZATION=0;POCL_FORCE_PARALLEL_OUTER_LOOP=0"
163+
ENVIRONMENT "POCL_WORK_GROUP_SPECIALIZATION=0"
166164
)
167165
endforeach()
168166

0 commit comments

Comments
 (0)