mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-09 13:50:05 +00:00
Fixed Osd::CudaEvaluator
- Fixed the size of a cudaMemcpy - Fixed the use of local "static" storage
This commit is contained in:
parent
8929b3062b
commit
710da328f9
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user