We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6d7cb8 commit 876a3f0Copy full SHA for 876a3f0
elephant/asset/asset.py
@@ -1354,7 +1354,8 @@ def pycuda(self, mat):
1354
# needed for the kernel, to avoid exceeding the resources
1355
if self.cuda_threads:
1356
# Override with the number in the parameter `cuda_threads`
1357
- n_threads = self.cuda_threads
+ n_threads = min(self.cuda_threads,
1358
+ device.MAX_THREADS_PER_BLOCK)
1359
else:
1360
# Automatically determine the number of threads based on
1361
# the register count.
0 commit comments