2011-04-27 11:58:34 +00:00
|
|
|
/*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Copyright 2011-2013 Blender Foundation
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2011-04-27 11:58:34 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
2014-12-25 01:50:24 +00:00
|
|
|
* limitations under the License.
|
2011-04-27 11:58:34 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __DEVICE_INTERN_H__
|
|
|
|
#define __DEVICE_INTERN_H__
|
|
|
|
|
2020-03-06 13:15:21 +00:00
|
|
|
#include "util/util_string.h"
|
|
|
|
#include "util/util_vector.h"
|
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
CCL_NAMESPACE_BEGIN
|
|
|
|
|
|
|
|
class Device;
|
2020-03-06 13:15:21 +00:00
|
|
|
class DeviceInfo;
|
|
|
|
class Profiler;
|
|
|
|
class Stats;
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2018-11-29 22:30:17 +00:00
|
|
|
Device *device_cpu_create(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background);
|
2018-11-09 11:01:38 +00:00
|
|
|
bool device_opencl_init();
|
2018-11-29 22:30:17 +00:00
|
|
|
Device *device_opencl_create(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background);
|
Cycles: Support multithreaded compilation of kernels
This patch implements a workaround to get the multithreaded compilation from D2231 working.
So far, it only works for Blender, not for Cycles Standalone. Also, I have only tested the Linux codepath in the helper function.
Depends on D2231.
Reviewers: brecht, dingto, sergey, juicyfruit, lukasstockner97
Reviewed By: brecht
Subscribers: Loner, jbakker, candreacchio, 3dLuver, LazyDodo, bliblubli
Differential Revision: https://developer.blender.org/D2264
2019-02-15 07:18:38 +00:00
|
|
|
bool device_opencl_compile_kernel(const vector<string> ¶meters);
|
2018-11-09 11:01:38 +00:00
|
|
|
bool device_cuda_init();
|
2018-11-29 22:30:17 +00:00
|
|
|
Device *device_cuda_create(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background);
|
2019-09-12 12:50:06 +00:00
|
|
|
bool device_optix_init();
|
|
|
|
Device *device_optix_create(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background);
|
2020-10-28 18:55:41 +00:00
|
|
|
Device *device_dummy_create(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background);
|
2019-09-12 12:50:06 +00:00
|
|
|
|
2018-11-29 22:30:17 +00:00
|
|
|
Device *device_network_create(DeviceInfo &info,
|
|
|
|
Stats &stats,
|
|
|
|
Profiler &profiler,
|
|
|
|
const char *address);
|
|
|
|
Device *device_multi_create(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background);
|
2019-04-17 04:17:24 +00:00
|
|
|
|
2012-01-04 18:06:32 +00:00
|
|
|
void device_cpu_info(vector<DeviceInfo> &devices);
|
|
|
|
void device_opencl_info(vector<DeviceInfo> &devices);
|
|
|
|
void device_cuda_info(vector<DeviceInfo> &devices);
|
2020-05-14 02:54:45 +00:00
|
|
|
void device_optix_info(const vector<DeviceInfo> &cuda_devices, vector<DeviceInfo> &devices);
|
2012-01-04 18:06:32 +00:00
|
|
|
void device_network_info(vector<DeviceInfo> &devices);
|
2011-04-27 11:58:34 +00:00
|
|
|
|
2018-11-09 11:01:38 +00:00
|
|
|
string device_cpu_capabilities();
|
|
|
|
string device_opencl_capabilities();
|
|
|
|
string device_cuda_capabilities();
|
2015-01-06 09:13:21 +00:00
|
|
|
|
2011-04-27 11:58:34 +00:00
|
|
|
CCL_NAMESPACE_END
|
|
|
|
|
|
|
|
#endif /* __DEVICE_INTERN_H__ */
|