forked from bartvdbraak/blender
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
@ -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…
Reference in New Issue
Block a user