Fixed Osd::CudaEvaluator

- Fixed the size of a cudaMemcpy
- Fixed the use of local "static" storage
This commit is contained in:
David G Yu 2016-09-29 20:27:43 -07:00
parent 8929b3062b
commit 710da328f9
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ CudaPatchTable::allocate(Far::PatchTable const *farPatchTable) {
err = cudaMemcpy(_fvarIndexBuffers[fvc],
patchTable.GetFVarPatchIndexBuffer(fvc),
indexSize * sizeof(int),
fvarIndexSize * sizeof(int),
cudaMemcpyHostToDevice);
if (err != cudaSuccess) return false;

View File

@ -54,7 +54,7 @@
#elif defined(OSD_PATCH_BASIS_CUDA)
#define OSD_FUNCTION_STORAGE_CLASS __device__
#define OSD_DATA_STORAGE_CLASS static
#define OSD_DATA_STORAGE_CLASS
#define OSD_OPTIONAL(a) true
#define OSD_OPTIONAL_INIT(a,b) b
#define OSD_OUT