This was tested in some places to check if code was being compiled for the CPU, however this is only defined in the kernel. Checking __KERNEL_GPU__ always works.
12 lines
291 B
C++
12 lines
291 B
C++
/* SPDX-License-Identifier: Apache-2.0
|
|
* Copyright 2011-2022 Blender Foundation */
|
|
|
|
#define __KERNEL_AVX__
|
|
|
|
#define TEST_CATEGORY_NAME util_avx
|
|
|
|
#if (defined(i386) || defined(_M_IX86) || defined(__x86_64__) || defined(_M_X64)) && \
|
|
defined(__AVX__)
|
|
# include "util_avxf_test.h"
|
|
#endif
|