Skip to content

Commit e38414b

Browse files
r-barnesinducer
authored andcommitted
Remove unused variables.
1 parent 7f0ca24 commit e38414b

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

src/cpp/curand.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ namespace pycuda { namespace curandom {
5252
buf_wrapper.get(dst.ptr(), PyBUF_ANY_CONTIGUOUS | PyBUF_WRITABLE);
5353

5454
void *buf = buf_wrapper.m_buf.buf;
55-
PYCUDA_BUFFER_SIZE_T len = buf_wrapper.m_buf.len;
5655

5756
if (CURAND_DIRECTION_VECTORS_32_JOEKUO6 == set
5857
#if CUDAPP_CUDA_VERSION >= 4000

src/wrapper/wrap_cudadrv.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@ namespace
355355
module *module_from_buffer(py::object buffer, py::object py_options,
356356
py::object message_handler)
357357
{
358-
PYCUDA_BUFFER_SIZE_T len;
359358
py_buffer_wrapper py_buf;
360359
py_buf.get(buffer.ptr(), PyBUF_ANY_CONTIGUOUS);
361360
CUmodule mod;
@@ -499,16 +498,15 @@ namespace
499498

500499
void add_data(py::object py_data, CUjitInputType input_type, py::str py_name)
501500
{
502-
Py_buffer py_buf;
503-
PYCUDA_BUFFER_SIZE_T data_buf_len;
501+
Py_buffer py_buf;
504502
if (PyObject_GetBuffer(py_data.ptr(), &py_buf, PyBUF_ANY_CONTIGUOUS)) {
505503
throw py::error_already_set();
506504
}
507505
const char* name = (py_name.ptr() != Py_None)?
508506
py::extract<const char*>(py_name) : NULL;
509507
const CUresult cu_result = cuLinkAddData(m_link_state, input_type, py_buf.buf,
510508
py_buf.len, name, 0, NULL, NULL);
511-
PyBuffer_Release(&py_buf);
509+
PyBuffer_Release(&py_buf);
512510
check_cu_result("cuLinkAddData", cu_result);
513511
}
514512

0 commit comments

Comments
 (0)