Home
last modified time | relevance | path

Searched refs:workGroupSize (Results 1 – 25 of 27) sorted by relevance

12

/external/OpenCL-CTS/test_conformance/basic/
Dtest_local_kernel_scope.cpp73 size_t workGroupSize; in test_local_kernel_scope() local
74 …roupInfo( kernel, device, CL_KERNEL_WORK_GROUP_SIZE, sizeof( workGroupSize ), &workGroupSize, NULL… in test_local_kernel_scope()
78 while( workGroupSize > MAX_LOCAL_STORAGE_SIZE ) in test_local_kernel_scope()
79 workGroupSize >>= 1; in test_local_kernel_scope()
81 size_t testSize = workGroupSize; in test_local_kernel_scope()
83 testSize += workGroupSize; in test_local_kernel_scope()
84 size_t numGroups = testSize / workGroupSize; in test_local_kernel_scope()
85 log_info( "\tTesting with %ld groups, %ld elements per group...\n", numGroups, workGroupSize ); in test_local_kernel_scope()
105 …error = clEnqueueNDRangeKernel( queue, kernel, 1, NULL, &testSize, &workGroupSize, 0, NULL, NULL ); in test_local_kernel_scope()
119 for( volatile size_t j = 0; j < workGroupSize; j++ ) in test_local_kernel_scope()
[all …]
/external/deqp/modules/gles31/functional/
Des31fShaderAtomicOpTests.cpp68 …me, AtomicOperandType operandType, DataType type, Precision precision, const UVec3& workGroupSize);
96 …ame, AtomicOperandType operandType, DataType type, Precision precision, const UVec3& workGroupSize) in ShaderAtomicOpCase() argument
102 , m_workGroupSize (workGroupSize) in ShaderAtomicOpCase()
279 const int workGroupSize = (int)product(m_workGroupSize); in verify() local
280 const int numWorkGroups = numValues/workGroupSize; in verify()
284 const int groupOffset = groupNdx*workGroupSize; in verify()
290 for (int localNdx = 0; localNdx < workGroupSize; localNdx++) in verify()
302 for (int localNdx = 0; localNdx < workGroupSize; localNdx++) in verify()
432 const int workGroupSize = (int)product(m_workGroupSize); in verify() local
433 const int numWorkGroups = numValues/workGroupSize; in verify()
[all …]
Des31fComputeShaderBuiltinVarTests.cpp85 …virtual UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const U…
305 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
308 DE_UNREF(workGroupSize); in computeReference()
332 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
337 return workGroupSize; in computeReference()
355 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
358 DE_UNREF(workGroupSize); in computeReference()
381 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
384 DE_UNREF(workGroupSize); in computeReference()
406 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
[all …]
Des31fIndirectComputeDispatchTests.cpp87 glu::ProgramSources genVerifySources (const UVec3& workGroupSize) in genVerifySources() argument
105 args["LOCAL_SIZE_X"] = de::toString(workGroupSize.x()); in genVerifySources()
106 args["LOCAL_SIZE_Y"] = de::toString(workGroupSize.y()); in genVerifySources()
107 args["LOCAL_SIZE_Z"] = de::toString(workGroupSize.z()); in genVerifySources()
284 deUint32 computeInvocationCount (const UVec3& workGroupSize, const UVec3& numWorkGroups) in computeInvocationCount() argument
286 const int numInvocationsPerGroup = workGroupSize[0]*workGroupSize[1]*workGroupSize[2]; in computeInvocationCount()
395 …uffer genBuffer, deUintptr bufferSize, deUintptr offset, const UVec3& workGroupSize, const UVec3& … in SingleDispatchCase() argument
399 m_workGroupSize = workGroupSize; in SingleDispatchCase()
469 UVec3 workGroupSize; in init() member
496 s_singleDispatchCases[ndx].workGroupSize, in init()
Des31fShaderSharedVarTests.cpp74 …ntext, const char* name, DataType basicType, Precision precision, const tcu::UVec3& workGroupSize);
92 … getBasicCaseDescription (DataType basicType, Precision precision, const tcu::UVec3& workGroupSize) in getBasicCaseDescription() argument
97 str << getDataTypeName(basicType) << ", work group size = " << workGroupSize; in getBasicCaseDescription()
101 …ontext, const char* name, DataType basicType, Precision precision, const tcu::UVec3& workGroupSize) in SharedBasicVarCase() argument
102 : TestCase (context, name, getBasicCaseDescription(basicType, precision, workGroupSize).c_str()) in SharedBasicVarCase()
105 , m_workGroupSize (workGroupSize) in SharedBasicVarCase()
375 const tcu::UVec3 workGroupSize (2,1,3); in init() local
376 …ontext, getDataTypeName(DataType(basicType)), DataType(basicType), PRECISION_LAST, workGroupSize)); in init()
382 const tcu::UVec3 workGroupSize (2,1,3); in init() local
385 …edBasicVarCase(m_context, name.c_str(), DataType(basicType), Precision(precision), workGroupSize)); in init()
Des31fBasicComputeShaderTests.cpp609 const int workGroupSize = m_localSize[0]*m_localSize[1]*m_localSize[2]; in iterate() local
611 const int numValues = workGroupSize*workGroupCount; in iterate()
621 << "shared uint offsets[" << workGroupSize << "];\n\n" in iterate()
672 for (int localOffs = 0; localOffs < workGroupSize; localOffs++) in iterate()
674 const int globalOffs = groupNdx*workGroupSize; in iterate()
676 … int offs0 = localOffs-1 < 0 ? ((localOffs+workGroupSize-1)%workGroupSize) : ((localOffs-1)%work… in iterate()
677 … int offs1 = localOffs-2 < 0 ? ((localOffs+workGroupSize-2)%workGroupSize) : ((localOffs-2)%work… in iterate()
832 const int workGroupSize = m_localSize[0]*m_localSize[1]*m_localSize[2]; in iterate() local
834 const int numValues = workGroupSize*workGroupCount; in iterate()
844 << "shared uint offsets[" << workGroupSize << "];\n\n" in iterate()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/compute/
DvktComputeShaderBuiltinVarTests.cpp158 …virtual UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const U…
265 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
268 DE_UNREF(workGroupSize); in computeReference()
292 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
297 return workGroupSize; in computeReference()
316 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
319 DE_UNREF(workGroupSize); in computeReference()
342 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
345 DE_UNREF(workGroupSize); in computeReference()
367 …UVec3 computeReference (const UVec3& numWorkGroups, const UVec3& workGroupSize, const UVec3& workG… in computeReference() argument
[all …]
DvktComputeIndirectComputeDispatchTests.cpp106 const tcu::UVec3 workGroupSize, in DispatchCaseDesc()
111 , m_workGroupSize (workGroupSize) in DispatchCaseDesc()
127 const tcu::UVec3& workGroupSize,
164 const tcu::UVec3& workGroupSize, in IndirectDispatchInstanceBufferUpload() argument
174 , m_workGroupSize (workGroupSize) in IndirectDispatchInstanceBufferUpload()
442 const tcu::UVec3& workGroupSize, in IndirectDispatchInstanceBufferGenerate() argument
444 …: IndirectDispatchInstanceBufferUpload(context, name, bufferSize, workGroupSize, dispatchCommands)… in IndirectDispatchInstanceBufferGenerate()
DvktComputeBasicComputeShaderTests.cpp160 const int workGroupSize = multiplyComponents(m_localSize); in initPrograms() local
162 const int numValues = workGroupSize * workGroupCount; in initPrograms()
170 << "shared uint offsets[" << workGroupSize << "];\n\n" in initPrograms()
206 const int workGroupSize = multiplyComponents(m_localSize); in iterate() local
211 const VkDeviceSize bufferSizeBytes = sizeof(deUint32) * workGroupSize * workGroupCount; in iterate()
270 const int globalOffset = groupNdx * workGroupSize; in iterate()
271 for (int localOffset = 0; localOffset < workGroupSize; ++localOffset) in iterate()
274 const deUint32 ref = globalOffset + squared(workGroupSize - localOffset - 1); in iterate()
331 const int workGroupSize = multiplyComponents(m_localSize); in initPrograms() local
333 const int numValues = workGroupSize * workGroupCount; in initPrograms()
[all …]
/external/deqp/external/vulkancts/modules/vulkan/sparse_resources/
DvktSparseResourcesBufferMemoryAliasing.cpp126 const tcu::UVec3 workGroupSize = computeWorkGroupSize(numInvocations); in initPrograms() local
130 …yout (local_size_x = " << workGroupSize.x() << ", local_size_y = " << workGroupSize.y() << ", loca… in initPrograms()
342 const tcu::UVec3 workGroupSize = computeWorkGroupSize(numInvocationsLeft); in iterate() local
345 numInvocationsLeft -= workGroupSize.x()*workGroupSize.y()*workGroupSize.z(); in iterate()
DvktSparseResourcesShaderIntrinsicsStorage.cpp474 const tcu::UVec3 workGroupSize = computeWorkGroupSize(gridSize); in recordCommands() local
475 const tcu::UVec3 specializationData[2] = { gridSize, workGroupSize }; in recordCommands()
516 …const deUint32 xWorkGroupCount = gridSize.x() / workGroupSize.x() + (gridSize.x() % workGroupSize in recordCommands()
517 …const deUint32 yWorkGroupCount = gridSize.y() / workGroupSize.y() + (gridSize.y() % workGroupSize in recordCommands()
518 …const deUint32 zWorkGroupCount = gridSize.z() / workGroupSize.z() + (gridSize.z() % workGroupSize in recordCommands()
DvktSparseResourcesImageSparseResidency.cpp220 const tcu::UVec3 workGroupSize = computeWorkGroupSize(shaderExtent); in initPrograms() local
229 …yout (local_size_x = " << workGroupSize.x() << ", local_size_y = " << workGroupSize.y() << ", loca… in initPrograms()
657 const tcu::UVec3 workGroupSize = computeWorkGroupSize(shaderExtent); in iterate() local
659 …eUint32 xWorkGroupCount = shaderExtent.width / workGroupSize.x() + (shaderExtent.width % workGro… in iterate()
660 …eUint32 yWorkGroupCount = shaderExtent.height / workGroupSize.y() + (shaderExtent.height % workGro… in iterate()
661 …eUint32 zWorkGroupCount = shaderExtent.depth / workGroupSize.z() + (shaderExtent.depth % workGro… in iterate()
/external/deqp/external/vulkancts/modules/vulkan/ycbcr/
DvktYCbCrStorageImageWriteTests.cpp276 const tcu::UVec3 workGroupSize = computeWorkGroupSize(shaderExtent); in testStorageImageWrite() local
278 … deUint32 xWorkGroupCount = shaderExtent.width / workGroupSize.x() + (shaderExtent.width % workGro… in testStorageImageWrite()
279 …eUint32 yWorkGroupCount = shaderExtent.height / workGroupSize.y() + (shaderExtent.height % workGro… in testStorageImageWrite()
280 … deUint32 zWorkGroupCount = shaderExtent.depth / workGroupSize.z() + (shaderExtent.depth % workGro… in testStorageImageWrite()
656 const tcu::UVec3 workGroupSize = computeWorkGroupSize(shaderExtent); in initPrograms() local
660 …yout (local_size_x = " << workGroupSize.x() << ", local_size_y = " << workGroupSize.y() << ", loca… in initPrograms()
/external/OpenCL-CTS/test_conformance/non_uniform_work_group/
DTestNonUniformWorkGroup.h74 static void setMaxLocalWorkgroupSize(size_t workGroupSize) in setMaxLocalWorkgroupSize() argument
76 TestNonUniformWorkGroup::_maxLocalWorkgroupSize = workGroupSize; in setMaxLocalWorkgroupSize()
/external/angle/src/libANGLE/
DCLKernel.cpp114 copyValue = &info.workGroupSize; in getWorkGroupInfo()
115 copySize = sizeof(info.workGroupSize); in getWorkGroupInfo()
/external/deqp/external/openglcts/modules/common/
DglcShaderGroupVoteTests.cpp232 const WorkGroupSize workGroupSize(context); in ShaderGroupVoteTestCaseBase() local
237 stream << workGroupSize.width << " " << workGroupSize.height; in ShaderGroupVoteTestCaseBase()
/external/angle/src/libANGLE/renderer/
DCLKernelImpl.h35 size_t workGroupSize = 0u; member
/external/angle/src/compiler/translator/
DOutputHLSL.h50 sh::WorkGroupSize workGroupSize,
DOutputHLSL.cpp310 sh::WorkGroupSize workGroupSize, in OutputHLSL() argument
329 mWorkGroupSize(workGroupSize), in OutputHLSL()
/external/angle/src/libANGLE/renderer/cl/
DCLKernelCL.cpp194 workGroup.workGroupSize, errorCode) || in createInfo()
/external/angle/src/libANGLE/capture/
Dframe_capture_utils.cpp918 void SerializeWorkGroupSize(JsonSerializer *json, const sh::WorkGroupSize &workGroupSize) in SerializeWorkGroupSize() argument
921 json->addScalar("x", workGroupSize[0]); in SerializeWorkGroupSize()
922 json->addScalar("y", workGroupSize[1]); in SerializeWorkGroupSize()
923 json->addScalar("z", workGroupSize[2]); in SerializeWorkGroupSize()
/external/angle/src/tests/gl_tests/
DComputeShaderTest.cpp1984 GLint workGroupSize[3]; in TEST_P() local
1987 glGetProgramiv(graphicsProgram, GL_COMPUTE_WORK_GROUP_SIZE, workGroupSize); in TEST_P()
2000 glGetProgramiv(computeProgram, GL_COMPUTE_WORK_GROUP_SIZE, workGroupSize); in TEST_P()
/external/deqp-deps/glslang/glslang/MachineIndependent/
DParseHelper.cpp8496 TVariable* workGroupSize = getEditableVariable("gl_WorkGroupSize"); in updateStandaloneQualifierDefaults() local
8497 if (workGroupSize != nullptr) in updateStandaloneQualifierDefaults()
8498workGroupSize->getWritableConstArray()[i].setUConst(intermediate.getLocalSize(i)); in updateStandaloneQualifierDefaults()
8510 TVariable* workGroupSize = getEditableVariable("gl_WorkGroupSize"); in updateStandaloneQualifierDefaults() local
8511 if (workGroupSize != nullptr) in updateStandaloneQualifierDefaults()
8512 workGroupSize->getWritableType().getQualifier().specConstant = true; in updateStandaloneQualifierDefaults()
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmInstructionTests.cpp851 …est(bool useLiteralLocalSize, bool useSpecConstantWorkgroupSize, IVec3 workGroupSize, deUint32 ndx) in getAsmForLocalSizeTest() argument
859 << workGroupSize.x() << " " << workGroupSize.y() << " " << workGroupSize.z() << "\n"; in getAsmForLocalSizeTest()
883 out << "%spec_0 = OpSpecConstant %u32 "<< workGroupSize.x() << "\n" in getAsmForLocalSizeTest()
884 << "%spec_1 = OpSpecConstant %u32 "<< workGroupSize.y() << "\n" in getAsmForLocalSizeTest()
885 << "%spec_2 = OpSpecConstant %u32 "<< workGroupSize.z() << "\n" in getAsmForLocalSizeTest()
/external/deqp-deps/glslang/glslang/HLSL/
DhlslParseHelper.cpp9195 TVariable* workGroupSize = getEditableVariable("gl_WorkGroupSize"); in updateStandaloneQualifierDefaults() local
9196 workGroupSize->getWritableConstArray()[i].setUConst(intermediate.getLocalSize(i)); in updateStandaloneQualifierDefaults()
9201 TVariable* workGroupSize = getEditableVariable("gl_WorkGroupSize"); in updateStandaloneQualifierDefaults() local
9202 workGroupSize->getWritableType().getQualifier().specConstant = true; in updateStandaloneQualifierDefaults()

12