1bf215546Sopenharmony_ci// 2bf215546Sopenharmony_ci// Copyright 2020 Red Hat 3bf215546Sopenharmony_ci// 4bf215546Sopenharmony_ci// Permission is hereby granted, free of charge, to any person obtaining a 5bf215546Sopenharmony_ci// copy of this software and associated documentation files (the "Software"), 6bf215546Sopenharmony_ci// to deal in the Software without restriction, including without limitation 7bf215546Sopenharmony_ci// the rights to use, copy, modify, merge, publish, distribute, sublicense, 8bf215546Sopenharmony_ci// and/or sell copies of the Software, and to permit persons to whom the 9bf215546Sopenharmony_ci// Software is furnished to do so, subject to the following conditions: 10bf215546Sopenharmony_ci// 11bf215546Sopenharmony_ci// The above copyright notice and this permission notice shall be included in 12bf215546Sopenharmony_ci// all copies or substantial portions of the Software. 13bf215546Sopenharmony_ci// 14bf215546Sopenharmony_ci// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15bf215546Sopenharmony_ci// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16bf215546Sopenharmony_ci// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17bf215546Sopenharmony_ci// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR 18bf215546Sopenharmony_ci// OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19bf215546Sopenharmony_ci// ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20bf215546Sopenharmony_ci// OTHER DEALINGS IN THE SOFTWARE. 21bf215546Sopenharmony_ci// 22bf215546Sopenharmony_ci 23bf215546Sopenharmony_ci#include "api/util.hpp" 24bf215546Sopenharmony_ci#include "core/context.hpp" 25bf215546Sopenharmony_ci#include "core/platform.hpp" 26bf215546Sopenharmony_ci 27bf215546Sopenharmony_ciusing namespace clover; 28bf215546Sopenharmony_ci 29bf215546Sopenharmony_ci// This contains all the CL 2.x API entrypoints that return INVALID_OPERATON 30bf215546Sopenharmony_ci// on CL 3.0. If these are implemented they should be moved out of this file. 31bf215546Sopenharmony_ci 32bf215546Sopenharmony_ciCLOVER_API cl_mem 33bf215546Sopenharmony_ciclCreatePipe(cl_context d_ctx, 34bf215546Sopenharmony_ci cl_mem_flags flags, 35bf215546Sopenharmony_ci cl_uint pipe_packet_size, 36bf215546Sopenharmony_ci cl_uint pipe_max_packets, 37bf215546Sopenharmony_ci const cl_pipe_properties *properties, 38bf215546Sopenharmony_ci cl_int *r_errorcode) { 39bf215546Sopenharmony_ci *r_errorcode = CL_INVALID_OPERATION; 40bf215546Sopenharmony_ci return nullptr; 41bf215546Sopenharmony_ci} 42bf215546Sopenharmony_ci 43bf215546Sopenharmony_ci 44bf215546Sopenharmony_ciCLOVER_API cl_int 45bf215546Sopenharmony_ciclGetPipeInfo(cl_mem pipe, 46bf215546Sopenharmony_ci cl_pipe_info param_name, 47bf215546Sopenharmony_ci size_t param_value_size, 48bf215546Sopenharmony_ci void *param_value, 49bf215546Sopenharmony_ci size_t *param_value_size_ret) { 50bf215546Sopenharmony_ci return CL_INVALID_MEM_OBJECT; 51bf215546Sopenharmony_ci} 52bf215546Sopenharmony_ci 53bf215546Sopenharmony_ciCLOVER_API cl_int 54bf215546Sopenharmony_ciclGetDeviceAndHostTimer(cl_device_id device, 55bf215546Sopenharmony_ci cl_ulong *device_timestamp, 56bf215546Sopenharmony_ci cl_ulong *host_timestamp) { 57bf215546Sopenharmony_ci return CL_INVALID_OPERATION; 58bf215546Sopenharmony_ci} 59bf215546Sopenharmony_ci 60bf215546Sopenharmony_ciCLOVER_API cl_int 61bf215546Sopenharmony_ciclGetHostTimer(cl_device_id device, 62bf215546Sopenharmony_ci cl_ulong *host_timestamp) { 63bf215546Sopenharmony_ci return CL_INVALID_OPERATION; 64bf215546Sopenharmony_ci} 65bf215546Sopenharmony_ci 66bf215546Sopenharmony_ci 67bf215546Sopenharmony_ciCLOVER_API cl_int 68bf215546Sopenharmony_ciclGetKernelSubGroupInfo(cl_kernel d_kern, 69bf215546Sopenharmony_ci cl_device_id device, 70bf215546Sopenharmony_ci cl_kernel_sub_group_info param_name, 71bf215546Sopenharmony_ci size_t input_value_size, 72bf215546Sopenharmony_ci const void *input_value, 73bf215546Sopenharmony_ci size_t param_size_value, 74bf215546Sopenharmony_ci void *param_value, 75bf215546Sopenharmony_ci size_t *param_value_size_ret) { 76bf215546Sopenharmony_ci return CL_INVALID_OPERATION; 77bf215546Sopenharmony_ci} 78bf215546Sopenharmony_ci 79bf215546Sopenharmony_ci 80bf215546Sopenharmony_ciCLOVER_API cl_int 81bf215546Sopenharmony_ciclSetDefaultDeviceCommandQueue(cl_context context, 82bf215546Sopenharmony_ci cl_device_id device, 83bf215546Sopenharmony_ci cl_command_queue command_queue) { 84bf215546Sopenharmony_ci return CL_INVALID_OPERATION; 85bf215546Sopenharmony_ci} 86bf215546Sopenharmony_ci 87bf215546Sopenharmony_ciCLOVER_API cl_int 88bf215546Sopenharmony_ciclSetProgramReleaseCallback(cl_program d_prog, 89bf215546Sopenharmony_ci void (CL_CALLBACK *pfn_notify)(cl_program program, void *user_data), 90bf215546Sopenharmony_ci void *user_data) { 91bf215546Sopenharmony_ci return CL_INVALID_OPERATION; 92bf215546Sopenharmony_ci} 93bf215546Sopenharmony_ci 94bf215546Sopenharmony_ciCLOVER_API cl_int 95bf215546Sopenharmony_ciclSetProgramSpecializationConstant(cl_program program, 96bf215546Sopenharmony_ci cl_uint spec_id, 97bf215546Sopenharmony_ci size_t spec_size, 98bf215546Sopenharmony_ci const void* spec_value) { 99bf215546Sopenharmony_ci return CL_INVALID_OPERATION; 100bf215546Sopenharmony_ci} 101