cu_device::max_shared_memory() now returns max dynamic shared memory size (#127)
This commit is contained in:
committed by
Philippe Tillet
parent
d8d6b715c8
commit
0b05e06c0d
@@ -108,7 +108,7 @@ size_t cu_device::max_threads_per_block() const {
|
|||||||
|
|
||||||
// maximum amount of shared memory per block
|
// maximum amount of shared memory per block
|
||||||
size_t cu_device::max_shared_memory() const {
|
size_t cu_device::max_shared_memory() const {
|
||||||
return cuGetInfo<CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK>();
|
return cuGetInfo<CU_DEVICE_ATTRIBUTE_MAX_SHARED_MEMORY_PER_BLOCK_OPTIN>();
|
||||||
}
|
}
|
||||||
|
|
||||||
// warp size
|
// warp size
|
||||||
|
Reference in New Issue
Block a user