1 // 2 // Copyright (c) 2022 The Khronos Group Inc. 3 // 4 // Licensed under the Apache License, Version 2.0 (the "License"); 5 // you may not use this file except in compliance with the License. 6 // You may obtain a copy of the License at 7 // 8 // http://www.apache.org/licenses/LICENSE-2.0 9 // 10 // Unless required by applicable law or agreed to in writing, software 11 // distributed under the License is distributed on an "AS IS" BASIS, 12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 // See the License for the specific language governing permissions and 14 // limitations under the License. 15 // 16 17 #ifndef _vulkan_interop_common_hpp_ 18 #define _vulkan_interop_common_hpp_ 19 20 #include "vulkan_wrapper_types.hpp" 21 #include "vulkan_wrapper.hpp" 22 #include "vulkan_list_map.hpp" 23 #include "vulkan_utility.hpp" 24 #include "opencl_vulkan_wrapper.hpp" 25 26 // Number of iterations for loops within tests (default value 5) 27 extern unsigned int innerIterations; 28 // Number of iterations for loops within perf tests (default value 100) 29 extern unsigned int perfIterations; 30 // Number of iterations for loops within stress tests (default value 1000) 31 extern unsigned int stressIterations; 32 // Number of CPU threads per GPU (default value 3) 33 extern size_t cpuThreadsPerGpu; 34 // Number of command queues (default value 1) 35 extern unsigned int numCQ; 36 // Enable Multi-import of vulkan device memory 37 extern bool multiImport; 38 // Enable Multi-import of vulkan device memory under different context 39 extern bool multiCtx; 40 // Enable additional debug info logging 41 extern bool debug_trace; 42 43 extern bool useSingleImageKernel; 44 extern bool useDeviceLocal; 45 extern bool disableNTHandleType; 46 // Enable offset for multiImport of vulkan device memory 47 extern bool enableOffset; 48 49 #endif // _vulkan_interop_common_hpp_ 50