| 410 | } |
| 411 | |
| 412 | void CompNode::set_prealloc_config( |
| 413 | size_t alignment, size_t min_req, size_t max_overhead, double growth_factor, |
| 414 | DeviceType device_type) { |
| 415 | switch (device_type) { |
| 416 | case DeviceType::CUDA: |
| 417 | CudaCompNode::set_prealloc_config( |
| 418 | alignment, min_req, max_overhead, growth_factor); |
| 419 | break; |
| 420 | default: |
| 421 | mgb_log_warn("unsupported device type for set_prealloc_config"); |
| 422 | }; |
| 423 | } |
| 424 | |
| 425 | CompNode::DeviceProperties CompNode::get_device_prop(int dev, DeviceType device_type) { |
| 426 | switch (device_type) { |
nothing calls this directly
no test coverage detected