提交 accfbcba 编写于 作者: M Matt Pharr

Attempt to enable compute 5.2 for NVIDIA GPU support

Issue #292.
上级 d4f5a4a4
......@@ -5,7 +5,7 @@
int main(int argc, char **argv){
cudaDeviceProp dP;
float min_cc = 5.3; // We need half floats...
float min_cc = 5.2;
int rc = cudaGetDeviceProperties(&dP, 0);
if(rc != cudaSuccess) {
......
......@@ -499,7 +499,7 @@ class Half {
PBRT_CPU_GPU
bool operator==(const Half &v) const {
#ifdef PBRT_IS_GPU_CODE
#if defined(PBRT_IS_GPU_CODE) && __CUDA_ARCH__ >= 530
return __ushort_as_half(h) == __ushort_as_half(v.h);
#else
if (Bits() == v.Bits())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册