| 403 | // out of scope before the instance of this class that calls this method does. |
| 404 | template <typename T> |
| 405 | void add_argument(const T &arg) { |
| 406 | argument_addresses_[number_of_argument_addresses_] = |
| 407 | static_cast<const void *>(&arg); |
| 408 | argument_sizes_[number_of_argument_addresses_] = sizeof(arg); |
| 409 | ++number_of_argument_addresses_; |
| 410 | } |
| 411 | |
| 412 | // Adds a device memory argument to the list. |
| 413 | void add_device_memory_argument(const DeviceMemoryBase &arg) { |
no outgoing calls