mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd:🆑 Add unit; start namespace.
This commit is contained in:
parent
e44316ba1e
commit
4d02eb2286
2 changed files with 45 additions and 0 deletions
|
@ -213,6 +213,9 @@ endif
|
|||
if IMAGEMAGICK
|
||||
libircd_la_SOURCES += magick.cc
|
||||
endif
|
||||
if OPENCL
|
||||
libircd_la_SOURCES += cl.cc
|
||||
endif
|
||||
libircd_la_SOURCES += openssl.cc
|
||||
libircd_la_SOURCES += rfc1459.cc
|
||||
libircd_la_SOURCES += rfc3986.cc
|
||||
|
@ -279,6 +282,9 @@ endif
|
|||
json.lo: AM_CPPFLAGS := ${SPIRIT_UNIT_CPPFLAGS} ${AM_CPPFLAGS}
|
||||
json.lo: AM_CXXFLAGS := ${SPIRIT_UNIT_CXXFLAGS} ${AM_CXXFLAGS}
|
||||
lex_cast.lo: AM_CPPFLAGS := @BOOST_CPPFLAGS@ ${AM_CPPFLAGS}
|
||||
if OPENCL
|
||||
cl.lo: AM_CPPFLAGS := @OPENCL_CPPFLAGS@ ${AM_CPPFLAGS}
|
||||
endif
|
||||
tokens.lo: AM_CPPFLAGS := @BOOST_CPPFLAGS@ ${AM_CPPFLAGS}
|
||||
prof.lo: AM_CPPFLAGS := @BOOST_CPPFLAGS@ ${AM_CPPFLAGS}
|
||||
if MAGIC
|
||||
|
|
39
ircd/cl.cc
Normal file
39
ircd/cl.cc
Normal file
|
@ -0,0 +1,39 @@
|
|||
// The Construct
|
||||
//
|
||||
// Copyright (C) Matrix Construct Developers, Authors & Contributors
|
||||
// Copyright (C) 2016-2021 Jason Volk <jason@zemos.net>
|
||||
//
|
||||
// Permission to use, copy, modify, and/or distribute this software for any
|
||||
// purpose with or without fee is hereby granted, provided that the above
|
||||
// copyright notice and this permission notice is present in all copies. The
|
||||
// full license for this software is available in the LICENSE file.
|
||||
|
||||
#include <ircd/ircd.h>
|
||||
#include <CL/cl.h>
|
||||
|
||||
namespace ircd::cl
|
||||
{
|
||||
extern const info::versions opencl_version_api, opencl_version_abi;
|
||||
}
|
||||
|
||||
decltype(ircd::cl::opencl_version_api)
|
||||
ircd::cl::opencl_version_api
|
||||
{
|
||||
"OpenCL", info::versions::API, CL_TARGET_OPENCL_VERSION,
|
||||
{
|
||||
#if defined(CL_VERSION_MAJOR)
|
||||
CL_VERSION_MAJOR(CL_TARGET_OPENCL_VERSION),
|
||||
CL_VERSION_MINOR(CL_TARGET_OPENCL_VERSION),
|
||||
CL_VERSION_PATCH(CL_TARGET_OPENCL_VERSION),
|
||||
#endif
|
||||
}
|
||||
};
|
||||
|
||||
decltype(ircd::cl::opencl_version_abi)
|
||||
ircd::cl::opencl_version_abi
|
||||
{
|
||||
"OpenCL", info::versions::ABI, 0,
|
||||
{
|
||||
0, 0, 0
|
||||
}
|
||||
};
|
Loading…
Reference in a new issue