1 // 2 // Copyright (c) 2023 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 CL_KHR_SVM_COMMAND_BASIC_H 18 #define CL_KHR_SVM_COMMAND_BASIC_H 19 20 #include "basic_command_buffer.h" 21 22 23 struct BasicSVMCommandBufferTest : BasicCommandBufferTest 24 { BasicSVMCommandBufferTestBasicSVMCommandBufferTest25 BasicSVMCommandBufferTest(cl_device_id device, cl_context context, 26 cl_command_queue queue) 27 : BasicCommandBufferTest(device, context, queue) 28 {} 29 30 virtual bool Skip() override; 31 virtual cl_int SetUpKernelArgs(void) override; 32 33 protected: 34 cl_int init_extension_functions(); 35 36 clCommandSVMMemFillKHR_fn clCommandSVMMemFillKHR = nullptr; 37 clCommandSVMMemcpyKHR_fn clCommandSVMMemcpyKHR = nullptr; 38 39 clSVMWrapper svm_in_mem, svm_out_mem; 40 }; 41 42 #endif 43