1 | /******************************************************************************* |
2 | * Copyright 2019-2020 Intel Corporation |
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 GPU_OCL_OCL_GPU_DEVICE_INFO_HPP |
18 | #define GPU_OCL_OCL_GPU_DEVICE_INFO_HPP |
19 | |
20 | #include <string> |
21 | #include <vector> |
22 | #include <CL/cl.h> |
23 | |
24 | #include "gpu/compute/device_info.hpp" |
25 | #include "gpu/ocl/ocl_utils.hpp" |
26 | |
27 | namespace dnnl { |
28 | namespace impl { |
29 | namespace gpu { |
30 | namespace ocl { |
31 | |
32 | class ocl_gpu_device_info_t : public compute::device_info_t { |
33 | public: |
34 | std::string get_cl_ext_options() const; |
35 | |
36 | protected: |
37 | status_t init_device_name(engine_t *engine); |
38 | status_t init_arch(engine_t *engine); |
39 | status_t init_runtime_version(engine_t *engine); |
40 | status_t init_extensions(engine_t *engine); |
41 | status_t init_attributes(engine_t *engine); |
42 | }; |
43 | |
44 | } // namespace ocl |
45 | } // namespace gpu |
46 | } // namespace impl |
47 | } // namespace dnnl |
48 | |
49 | #endif // GPU_OCL_OCL_GPU_DEVICE_INFO_HPP |
50 | |