Blender V2.61 - r43446
|
#include <stdlib.h>
#include "util_cuda.h"
#include "util_debug.h"
#include "util_dynlib.h"
#include "util_path.h"
#include "util_string.h"
Go to the source code of this file.
#define CUDA_LIBRARY_FIND | ( | name | ) |
name = (t##name*)dynamic_library_find(lib, #name); \ assert(name);
Definition at line 153 of file util_cuda.cpp.
Referenced by cuLibraryInit().
#define CUDA_LIBRARY_FIND_CHECKED | ( | name | ) | name = (t##name*)dynamic_library_find(lib, #name); |
Definition at line 150 of file util_cuda.cpp.
Referenced by cuLibraryInit().
#define CUDA_LIBRARY_FIND_V2 | ( | name | ) |
name = (t##name*)dynamic_library_find(lib, #name "_v2"); \ assert(name);
Definition at line 157 of file util_cuda.cpp.
Referenced by cuLibraryInit().
string cuCompilerPath | ( | ) |
Definition at line 393 of file util_cuda.cpp.
References path_exists(), and path_join().
Referenced by CUDADevice::compile_kernel(), and cuLibraryInit().
bool cuLibraryInit | ( | ) |
Definition at line 163 of file util_cuda.cpp.
References cuArray3DCreate, cuArray3DGetDescriptor, cuArrayCreate, cuArrayDestroy, cuArrayGetDescriptor, cuCompilerPath(), cuCtxAttach, cuCtxCreate, cuCtxDestroy, cuCtxDetach, cuCtxGetDevice, cuCtxGetLimit, cuCtxPopCurrent, cuCtxPushCurrent, cuCtxSetCurrent, cuCtxSetLimit, cuCtxSynchronize, CUDA_LIBRARY_FIND, CUDA_LIBRARY_FIND_CHECKED, CUDA_LIBRARY_FIND_V2, cuDeviceComputeCapability, cuDeviceGet, cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuDeviceGetProperties, cuDeviceTotalMem, cuDriverGetVersion, cuEventCreate, cuEventDestroy, cuEventElapsedTime, cuEventQuery, cuEventRecord, cuEventSynchronize, cuFuncGetAttribute, cuFuncSetBlockShape, cuFuncSetCacheConfig, cuFuncSetSharedSize, cuGetExportTable, cuGLCtxCreate, cuGraphicsGLRegisterBuffer, cuGraphicsGLRegisterImage, cuGraphicsMapResources, cuGraphicsResourceGetMappedPointer, cuGraphicsResourceSetMapFlags, cuGraphicsSubResourceGetMappedArray, cuGraphicsUnmapResources, cuGraphicsUnregisterResource, cuInit, cuLaunch, cuLaunchGrid, cuLaunchGridAsync, cuMemAlloc, cuMemAllocHost, cuMemAllocPitch, cuMemcpy2D, cuMemcpy2DAsync, cuMemcpy2DUnaligned, cuMemcpy3D, cuMemcpy3DAsync, cuMemcpyAtoA, cuMemcpyAtoD, cuMemcpyAtoH, cuMemcpyAtoHAsync, cuMemcpyDtoA, cuMemcpyDtoD, cuMemcpyDtoDAsync, cuMemcpyDtoH, cuMemcpyDtoHAsync, cuMemcpyHtoA, cuMemcpyHtoAAsync, cuMemcpyHtoD, cuMemcpyHtoDAsync, cuMemFree, cuMemFreeHost, cuMemGetAddressRange, cuMemGetInfo, cuMemHostAlloc, cuMemHostGetDevicePointer, cuMemHostGetFlags, cuMemsetD16, cuMemsetD2D16, cuMemsetD2D32, cuMemsetD2D8, cuMemsetD32, cuMemsetD8, cuModuleGetFunction, cuModuleGetGlobal, cuModuleGetSurfRef, cuModuleGetTexRef, cuModuleLoad, cuModuleLoadData, cuModuleLoadDataEx, cuModuleLoadFatBinary, cuModuleUnload, cuParamSetf, cuParamSeti, cuParamSetSize, cuParamSetTexRef, cuParamSetv, cuStreamCreate, cuStreamDestroy, cuStreamQuery, cuStreamSynchronize, cuSurfRefGetArray, cuSurfRefSetArray, cuTexRefCreate, cuTexRefDestroy, cuTexRefGetAddress, cuTexRefGetAddressMode, cuTexRefGetArray, cuTexRefGetFilterMode, cuTexRefGetFlags, cuTexRefGetFormat, cuTexRefSetAddress, cuTexRefSetAddress2D, cuTexRefSetAddressMode, cuTexRefSetArray, cuTexRefSetFilterMode, cuTexRefSetFlags, cuTexRefSetFormat, dynamic_library_open(), and NULL.
Referenced by Device::available_devices(), Device::available_types(), and Device::create().
Definition at line 96 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 97 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 93 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 95 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_free().
Definition at line 94 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 40 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 38 of file util_cuda.cpp.
Referenced by CUDADevice::CUDADevice(), and cuLibraryInit().
Definition at line 39 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 41 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::~CUDADevice().
Definition at line 44 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 141 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 43 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 42 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 145 of file util_cuda.cpp.
Referenced by CUDADevice::cuda_pop_context(), CUDADevice::cuda_push_context(), and cuLibraryInit().
Definition at line 140 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 45 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::task_wait().
Definition at line 34 of file util_cuda.cpp.
Referenced by CUDADevice::compile_kernel(), cuLibraryInit(), CUDADevice::support_device(), and CUDADevice::support_full_kernel().
Definition at line 31 of file util_cuda.cpp.
Referenced by CUDADevice::CUDADevice(), and cuLibraryInit().
Definition at line 37 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and device_cuda_info().
Definition at line 32 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and device_cuda_info().
Definition at line 33 of file util_cuda.cpp.
Referenced by cuLibraryInit(), CUDADevice::description(), and device_cuda_info().
Definition at line 36 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 35 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 30 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 123 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 127 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 128 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 125 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 124 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 126 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 91 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 89 of file util_cuda.cpp.
Referenced by cuLibraryInit(), CUDADevice::path_trace(), CUDADevice::shader(), and CUDADevice::tonemap().
Definition at line 92 of file util_cuda.cpp.
Referenced by cuLibraryInit(), CUDADevice::path_trace(), CUDADevice::shader(), and CUDADevice::tonemap().
Definition at line 90 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 139 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 142 of file util_cuda.cpp.
Referenced by CUDADevice::CUDADevice(), and cuLibraryInit().
Definition at line 143 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::pixels_alloc().
Definition at line 144 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 137 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::map_pixels().
Definition at line 135 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::map_pixels().
Definition at line 136 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 134 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 138 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::unmap_pixels().
Definition at line 133 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::pixels_free().
Definition at line 29 of file util_cuda.cpp.
Referenced by CUDADevice::CUDADevice(), cuLibraryInit(), and device_cuda_info().
Definition at line 120 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 121 of file util_cuda.cpp.
Referenced by cuLibraryInit(), CUDADevice::path_trace(), CUDADevice::shader(), and CUDADevice::tonemap().
Definition at line 122 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 56 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::mem_alloc().
Definition at line 60 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 57 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 73 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 81 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 74 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 75 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 82 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 72 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 69 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 71 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 80 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 68 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 67 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 78 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 66 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::mem_copy_from().
Definition at line 77 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 70 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 79 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 65 of file util_cuda.cpp.
Referenced by CUDADevice::const_copy_to(), cuLibraryInit(), and CUDADevice::mem_copy_to().
Definition at line 76 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 58 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::mem_free().
Definition at line 61 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 59 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 55 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 62 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 63 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 64 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 84 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 87 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 88 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 86 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 85 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 83 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::mem_zero().
Definition at line 51 of file util_cuda.cpp.
Referenced by cuLibraryInit(), CUDADevice::path_trace(), CUDADevice::shader(), and CUDADevice::tonemap().
Definition at line 52 of file util_cuda.cpp.
Referenced by CUDADevice::const_copy_to(), and cuLibraryInit().
Definition at line 54 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 53 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 46 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::load_kernels().
Definition at line 47 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 48 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 49 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 50 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 117 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 116 of file util_cuda.cpp.
Referenced by cuLibraryInit(), CUDADevice::path_trace(), CUDADevice::shader(), and CUDADevice::tonemap().
Definition at line 115 of file util_cuda.cpp.
Referenced by cuLibraryInit(), CUDADevice::path_trace(), CUDADevice::shader(), and CUDADevice::tonemap().
Definition at line 119 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 118 of file util_cuda.cpp.
Referenced by cuLibraryInit(), CUDADevice::path_trace(), CUDADevice::shader(), and CUDADevice::tonemap().
Definition at line 129 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 132 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 130 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 131 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 114 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 113 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 98 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 99 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 107 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 109 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 108 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 110 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 112 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 111 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 101 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 102 of file util_cuda.cpp.
Referenced by cuLibraryInit().
Definition at line 104 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 100 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 105 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 106 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().
Definition at line 103 of file util_cuda.cpp.
Referenced by cuLibraryInit(), and CUDADevice::tex_alloc().