Blender V2.61 - r43446
|
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "device.h"
#include "device_intern.h"
#include "util_cuda.h"
#include "util_debug.h"
#include "util_map.h"
#include "util_opengl.h"
#include "util_path.h"
#include "util_system.h"
#include "util_types.h"
#include "util_time.h"
Go to the source code of this file.
Classes | |
class | CUDADevice |
struct | CUDADevice::PixelMem |
Defines | |
#define | cuda_abort() abort() |
#define | cuda_assert(stmt) |
Functions | |
Device * | device_cuda_create (DeviceInfo &info, bool background) |
void | device_cuda_info (vector< DeviceInfo > &devices) |
#define cuda_abort | ( | ) | abort() |
Definition at line 117 of file device_cuda.cpp.
#define cuda_assert | ( | stmt | ) |
{ \ CUresult result = stmt; \ \ if(result != CUDA_SUCCESS) { \ string message = string_printf("CUDA error: %s in %s", cuda_error_string(result), #stmt); \ if(error_msg == "") \ error_msg = message; \ fprintf(stderr, "%s\n", message.c_str()); \ cuda_abort(); \ } \ }
Definition at line 120 of file device_cuda.cpp.
Referenced by CUDADevice::const_copy_to(), CUDADevice::cuda_pop_context(), CUDADevice::cuda_push_context(), CUDADevice::map_pixels(), CUDADevice::mem_alloc(), CUDADevice::mem_copy_from(), CUDADevice::mem_copy_to(), CUDADevice::mem_free(), CUDADevice::mem_zero(), CUDADevice::path_trace(), CUDADevice::pixels_alloc(), CUDADevice::pixels_free(), CUDADevice::shader(), CUDADevice::task_wait(), CUDADevice::tex_alloc(), CUDADevice::tonemap(), CUDADevice::unmap_pixels(), and CUDADevice::~CUDADevice().
Device* device_cuda_create | ( | DeviceInfo & | info, |
bool | background | ||
) |
Definition at line 854 of file device_cuda.cpp.
References CUDADevice::CUDADevice().
Referenced by Device::create().
void device_cuda_info | ( | vector< DeviceInfo > & | devices | ) |
Definition at line 859 of file device_cuda.cpp.
References CU_DEVICE_ATTRIBUTE_KERNEL_EXEC_TIMEOUT, CUDA_SUCCESS, cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuInit, DeviceInfo::description, DEVICE_CUDA, DeviceInfo::display_device, DeviceInfo::id, DeviceInfo::num, string_printf(), and DeviceInfo::type.
Referenced by Device::available_devices().