Permalink
Browse files

minor changes

  • Loading branch information...
1 parent c58e180 commit c59a9b97992701f7bbbdddc45103f5efba15b281 @kashif kashif committed Jul 24, 2011
Showing with 4 additions and 3 deletions.
  1. +2 −2 src/cuda_device.cpp
  2. +2 −1 src/cuda_device.hpp
View
@@ -66,8 +66,8 @@ Handle<Value> CudaDevice::computeCapability(const Arguments& args) {
cuDeviceComputeCapability(&major, &minor, cu->m_device);
Local<Array> result = Array::New(2);
- result->Set(Integer::New(0), Integer::New(major));
- result->Set(Integer::New(1), Integer::New(minor));
+ result->Set(0, Integer::New(major));
+ result->Set(1, Integer::New(minor));
return scope.Close(result);
}
View
@@ -7,8 +7,9 @@
class CudaDevice : public EventEmitter {
public:
static void Initialize (Handle<Object> target);
-
+
CUdevice m_device;
+
protected:
static Persistent<FunctionTemplate> constructor_template;

0 comments on commit c59a9b9

Please sign in to comment.