eyalroz / cuda-api-wrappers

Thin, unified, C++-flavored wrappers for the CUDA APIs
BSD 3-Clause "New" or "Revised" License
768 stars 79 forks source link

Checking against the optional rather than the value in launch_config_builder_t #596

Closed eyalroz closed 4 months ago

eyalroz commented 6 months ago

In launch_config_builder_t& kernel(const kernel_t* wrapped_kernel_ptr)

we currently check: if (device_ and kernel_->device_id() != device_) but the comparison should be against device_.value(), not device.