1 /* 2 * Copyright 2018 Google Inc. 3 * 4 * Use of this source code is governed by a BSD-style license that can 5 * be found in the LICENSE file. 6 * 7 */ 8 9 #pragma once 10 11 // 12 // 13 // 14 15 #include <CL/opencl.h> 16 17 // 18 // 19 // 20 21 #include "suballocator.h" 22 23 // 24 // 25 // 26 27 struct skc_allocator_device 28 { 29 #if 0 30 struct { 31 32 } perm; 33 #endif 34 35 struct { 36 struct skc_suballocator suballocator; 37 cl_mem extent; 38 } temp; 39 }; 40 41 // 42 // 43 // 44 45 void 46 skc_allocator_device_create(struct skc_runtime * const runtime); 47 48 void 49 skc_allocator_device_dispose(struct skc_runtime * const runtime); 50 51 // 52 // 53 // 54