mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Cycles / CUDA: Workaround to make sm_52 (Maxwell) cards work.
* sm_52 can run a sm_50 kernel, so tell runtime detection to use that until we build a dedicated sm_52 kernel.
This commit is contained in:
parent
dde740bcd7
commit
a613290775
1 changed files with 4 additions and 0 deletions
|
|
@ -202,6 +202,10 @@ public:
|
|||
/* compute cubin name */
|
||||
int major, minor;
|
||||
cuDeviceComputeCapability(&major, &minor, cuDevId);
|
||||
|
||||
/* workaround to make sm_52 cards work, until we bundle kernel */
|
||||
if(major == 5 && minor == 2)
|
||||
minor = 0;
|
||||
|
||||
/* attempt to use kernel provided with blender */
|
||||
string cubin;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue