mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-15 07:10:37 +08:00
Added the ability to query the minor version of a cuda device
This commit is contained in:
parent
a08d2ff0c9
commit
f268db1c4b
@ -247,6 +247,14 @@ struct GpuDevice {
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE int minorDeviceVersion() const {
|
||||
#ifndef __CUDA_ARCH__
|
||||
return stream_->deviceProperties().minor;
|
||||
#else
|
||||
eigen_assert(false && "The default device should be used instead to generate kernel code");
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE int maxBlocks() const {
|
||||
return max_blocks_;
|
||||
|
Loading…
Reference in New Issue
Block a user