[libomptarget] [amdgpu] Fix default setting of max flat workgroup size
authorDhruva Chakrabarti <Dhruva.Chakrabarti@amd.com>
Tue, 29 Jun 2021 00:52:01 +0000 (17:52 -0700)
committerDhruva Chakrabarti <Dhruva.Chakrabarti@amd.com>
Tue, 29 Jun 2021 20:47:24 +0000 (13:47 -0700)
commit2240b41ee4f30fe938975677a0a5a2c5c26d271b
tree686e94db3cfaee5922208fdded2037d0fd4ca5ca
parent58af0d567d88eb5a7eec436886da066308d7a39e
[libomptarget] [amdgpu] Fix default setting of max flat workgroup size

When max flat workgroup size is not specified, it is set to the default
workgroup size. This prevents kernel launch with a workgroup size larger
than the default. The fix is to ignore a size of 0 and treat it as
unspecified.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D105073
openmp/libomptarget/plugins/amdgpu/src/rtl.cpp