1 |
jlec 13/10/02 11:39:49 |
2 |
|
3 |
Added: vmd-1.9.1-cuda-device_ptr.patch |
4 |
Log: |
5 |
sci-chemistry/vmd: Add fix for cuda 5.5 |
6 |
|
7 |
(Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key B9D4F231BD1558AB!) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 sci-chemistry/vmd/files/vmd-1.9.1-cuda-device_ptr.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/vmd/files/vmd-1.9.1-cuda-device_ptr.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-chemistry/vmd/files/vmd-1.9.1-cuda-device_ptr.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: vmd-1.9.1-cuda-device_ptr.patch |
16 |
=================================================================== |
17 |
vmd-1.9.1/src/CUDAMarchingCubes.cu | 1 + |
18 |
vmd-1.9.1/src/CUDAQuickSurf.cu | 1 + |
19 |
2 files changed, 2 insertions(+) |
20 |
|
21 |
diff --git a/vmd-1.9.1/src/CUDAMarchingCubes.cu b/vmd-1.9.1/src/CUDAMarchingCubes.cu |
22 |
index 5bfe7bf..36faaf0 100755 |
23 |
--- a/vmd-1.9.1/src/CUDAMarchingCubes.cu |
24 |
+++ b/vmd-1.9.1/src/CUDAMarchingCubes.cu |
25 |
@@ -45,6 +45,7 @@ |
26 |
#include "CUDAMarchingCubes.h" |
27 |
#include <thrust/scan.h> |
28 |
#include <thrust/functional.h> |
29 |
+#include <thrust/device_ptr.h> |
30 |
|
31 |
// The number of threads to use for triangle generation |
32 |
// (limited by shared memory size) |
33 |
diff --git a/vmd-1.9.1/src/CUDAQuickSurf.cu b/vmd-1.9.1/src/CUDAQuickSurf.cu |
34 |
index a21ebde..56a42c8 100755 |
35 |
--- a/vmd-1.9.1/src/CUDAQuickSurf.cu |
36 |
+++ b/vmd-1.9.1/src/CUDAQuickSurf.cu |
37 |
@@ -22,6 +22,7 @@ |
38 |
#include <stdlib.h> |
39 |
#include <string.h> |
40 |
#include <cuda.h> |
41 |
+#include <thrust/device_ptr.h> |
42 |
|
43 |
#if CUDART_VERSION < 4000 |
44 |
#error The VMD QuickSurf feature requires CUDA 4.0 or later |