Skip to content

Commit

Permalink
xe: correct allowable sg sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
syurkevi committed Jan 16, 2025
1 parent 423cdb2 commit 9e746e7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/gpu/intel/compute/device_info.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright 2020-2024 Intel Corporation
* Copyright 2020-2025 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -72,9 +72,12 @@ bool device_info_t::is_integrated() const {

bool device_info_t::mayiuse_sub_group(int size) const {
switch (gpu_arch()) {
case gpu_arch_t::xe2:
case gpu_arch_t::xe_hpc: return utils::one_of(size, 16, 32);
default: return utils::one_of(size, 8, 16, 32);
case gpu_arch_t::gen9:
case gpu_arch_t::gen11:
case gpu_arch_t::xe_lp:
case gpu_arch_t::xe_hp:
case gpu_arch_t::xe_hpg: return utils::one_of(size, 8, 16, 32);
default: return utils::one_of(size, 16, 32);
}
}

Expand Down

0 comments on commit 9e746e7

Please sign in to comment.