Skip to content
Snippets Groups Projects
Unverified Commit c8e589bb authored by Andreas Klöckner's avatar Andreas Klöckner Committed by GitHub
Browse files

Merge pull request #382 from matthiasdiener/platform-detection

Fix platform detection for pocl
parents 8a53bb1c b12597d1
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
......@@ -280,13 +280,15 @@ def get_simd_group_size(dev, type_size):
except Exception:
pass
lc_vendor = dev.platform.vendor.lower()
if "nvidia" in lc_vendor:
lc_plat_vendor = dev.platform.vendor.lower()
lc_dev_vendor = dev.vendor.lower()
if "nvidia" in lc_plat_vendor or "nvidia" in lc_dev_vendor:
return 32
if ("advanced micro" in lc_vendor or "ati" in lc_vendor):
if ("advanced micro" in lc_plat_vendor or "ati" in lc_plat_vendor
or "advanced micro" in lc_dev_vendor or "ati" in lc_dev_vendor):
if dev.type & cl.device_type.GPU:
# Tomasz Rybak says, in response to reduction mishbehaving on the AMD
# Tomasz Rybak says, in response to reduction misbehaving on the AMD
# 'Loveland' APU:
#
# Like in CUDA reduction bug (related to Fermi) it again seems
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment