Blender V5.0
block_sizes.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2017-2025 Blender Foundation
2 *
3 * SPDX-License-Identifier: Apache-2.0 */
4
5#pragma once
6
7#ifdef __HIP__
8# define GPU_PARALLEL_ACTIVE_INDEX_DEFAULT_BLOCK_SIZE 1024
9# define GPU_PARALLEL_PREFIX_SUM_DEFAULT_BLOCK_SIZE 1024
10# define GPU_PARALLEL_SORTED_INDEX_DEFAULT_BLOCK_SIZE 1024
11#else
12# define GPU_PARALLEL_ACTIVE_INDEX_DEFAULT_BLOCK_SIZE 512
13# define GPU_PARALLEL_PREFIX_SUM_DEFAULT_BLOCK_SIZE 512
14# define GPU_PARALLEL_SORTED_INDEX_DEFAULT_BLOCK_SIZE 512
15#endif
16
17#define GPU_PARALLEL_SORTED_INDEX_INACTIVE_KEY (~0)
18#define GPU_PARALLEL_SORT_BLOCK_SIZE 1024