mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-14 20:56:00 +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;
|
return 0;
|
||||||
#endif
|
#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 {
|
EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE int maxBlocks() const {
|
||||||
return max_blocks_;
|
return max_blocks_;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user