File: output_common.cpp

package info (click to toggle)
clinfo 0.0.20130513-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 464 kB
  • ctags: 146
  • sloc: sh: 1,054; cpp: 853; makefile: 8
file content (18 lines) | stat: -rw-r--r-- 380 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include "output_common.h"

char const *device_type_to_string(cl_device_type t)
{
        switch(t)
        {
        case CL_DEVICE_TYPE_GPU:
                return "CL_DEVICE_TYPE_GPU";
        case CL_DEVICE_TYPE_CPU:
                return "CL_DEVICE_TYPE_CPU";
        default:
                return "(unknown)";
        }
}