Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/device/cuda/device_cuda.h
| Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | struct { | ||||
| CUfunction adaptive_filter_x; | CUfunction adaptive_filter_x; | ||||
| CUfunction adaptive_filter_y; | CUfunction adaptive_filter_y; | ||||
| CUfunction adaptive_scale_samples; | CUfunction adaptive_scale_samples; | ||||
| int adaptive_num_threads_per_block; | int adaptive_num_threads_per_block; | ||||
| } functions; | } functions; | ||||
| static bool have_precompiled_kernels(); | static bool have_precompiled_kernels(); | ||||
| virtual bool show_samples() const; | bool show_samples() const override; | ||||
| virtual BVHLayoutMask get_bvh_layout_mask() const; | BVHLayoutMask get_bvh_layout_mask() const override; | ||||
| void set_error(const string &error) override; | void set_error(const string &error) override; | ||||
| CUDADevice(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background_); | CUDADevice(DeviceInfo &info, Stats &stats, Profiler &profiler, bool background_); | ||||
| virtual ~CUDADevice(); | virtual ~CUDADevice(); | ||||
| bool support_device(const DeviceRequestedFeatures & /*requested_features*/); | bool support_device(const DeviceRequestedFeatures & /*requested_features*/); | ||||
| bool check_peer_access(Device *peer_device); | bool check_peer_access(Device *peer_device) override; | ||||
| bool use_adaptive_compilation(); | bool use_adaptive_compilation(); | ||||
| bool use_split_kernel(); | bool use_split_kernel(); | ||||
| virtual string compile_kernel_get_common_cflags( | virtual string compile_kernel_get_common_cflags( | ||||
| const DeviceRequestedFeatures &requested_features, bool filter = false, bool split = false); | const DeviceRequestedFeatures &requested_features, bool filter = false, bool split = false); | ||||
| string compile_kernel(const DeviceRequestedFeatures &requested_features, | string compile_kernel(const DeviceRequestedFeatures &requested_features, | ||||
| const char *name, | const char *name, | ||||
| const char *base = "cuda", | const char *base = "cuda", | ||||
| bool force_ptx = false); | bool force_ptx = false); | ||||
| virtual bool load_kernels(const DeviceRequestedFeatures &requested_features); | bool load_kernels(const DeviceRequestedFeatures &requested_features) override; | ||||
| void load_functions(); | void load_functions(); | ||||
| void reserve_local_memory(const DeviceRequestedFeatures &requested_features); | void reserve_local_memory(const DeviceRequestedFeatures &requested_features); | ||||
| void init_host_memory(); | void init_host_memory(); | ||||
| void load_texture_info(); | void load_texture_info(); | ||||
| void move_textures_to_host(size_t size, bool for_texture); | void move_textures_to_host(size_t size, bool for_texture); | ||||
| CUDAMem *generic_alloc(device_memory &mem, size_t pitch_padding = 0); | CUDAMem *generic_alloc(device_memory &mem, size_t pitch_padding = 0); | ||||
| void generic_copy_to(device_memory &mem); | void generic_copy_to(device_memory &mem); | ||||
| void generic_free(device_memory &mem); | void generic_free(device_memory &mem); | ||||
| void mem_alloc(device_memory &mem); | void mem_alloc(device_memory &mem) override; | ||||
| void mem_copy_to(device_memory &mem); | void mem_copy_to(device_memory &mem) override; | ||||
| void mem_copy_from(device_memory &mem, int y, int w, int h, int elem); | void mem_copy_from(device_memory &mem, int y, int w, int h, int elem) override; | ||||
| void mem_zero(device_memory &mem); | void mem_zero(device_memory &mem) override; | ||||
| void mem_free(device_memory &mem); | void mem_free(device_memory &mem) override; | ||||
| device_ptr mem_alloc_sub_ptr(device_memory &mem, int offset, int /*size*/); | device_ptr mem_alloc_sub_ptr(device_memory &mem, int offset, int /*size*/) override; | ||||
| virtual void const_copy_to(const char *name, void *host, size_t size); | void const_copy_to(const char *name, void *host, size_t size) override; | ||||
| void global_alloc(device_memory &mem); | void global_alloc(device_memory &mem); | ||||
| void global_free(device_memory &mem); | void global_free(device_memory &mem); | ||||
| void tex_alloc(device_texture &mem); | void tex_alloc(device_texture &mem); | ||||
| void tex_free(device_texture &mem); | void tex_free(device_texture &mem); | ||||
| ▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | void draw_pixels(device_memory &mem, | ||||
| int h, | int h, | ||||
| int width, | int width, | ||||
| int height, | int height, | ||||
| int dx, | int dx, | ||||
| int dy, | int dy, | ||||
| int dw, | int dw, | ||||
| int dh, | int dh, | ||||
| bool transparent, | bool transparent, | ||||
| const DeviceDrawParams &draw_params); | const DeviceDrawParams &draw_params) override; | ||||
| void thread_run(DeviceTask *task); | void thread_run(DeviceTask *task); | ||||
| virtual void task_add(DeviceTask &task); | void task_add(DeviceTask &task) override; | ||||
| virtual void task_wait(); | void task_wait() override; | ||||
| virtual void task_cancel(); | void task_cancel() override; | ||||
| }; | }; | ||||
| CCL_NAMESPACE_END | CCL_NAMESPACE_END | ||||
| #endif | #endif | ||||