diff --git a/doc/driver.rst b/doc/driver.rst index 6a690ed6b7e034e5df581079fe814a157b537563..6e6d65f520d8abf07e151d1f333a658c3648209e 100644 --- a/doc/driver.rst +++ b/doc/driver.rst @@ -331,7 +331,7 @@ Constants CUDA 6.0 and above. .. versionadded:: 2014.1 - + .. attribute :: HOST_NATIVE_ATOMIC_SUPPORTED SINGLE_TO_DOUBLE_PRECISION_PERF_RATIO PAGEABLE_MEMORY_ACCESS @@ -409,6 +409,18 @@ Constants .. versionadded:: 0.94 + .. attribute:: CACHE_MODE_CA + + .. versionadded:: 2022.1 + + .. attribute:: MAX_DYNAMIC_SHARED_SIZE_BYTES + + .. versionadded:: 2022.1 + + .. attribute:: PREFERRED_SHARED_MEMORY_CARVEOUT + + .. versionadded:: 2022.1 + .. attribute:: MAX .. class:: func_cache @@ -1853,9 +1865,9 @@ Code on the Device: Modules and Functions which can make it somewhat slow. For a kernel that is invoked often, this can be inconvenient. For a faster (but mildly less convenient) way of invoking kernels, see :meth:`prepare` and :meth:`prepared_call`. - + .. note:: - + *grid* with more than two dimensions requires CUDA 4.0 or newer. .. method:: param_set_texref(texref) @@ -1932,6 +1944,13 @@ Code on the Device: Modules and Functions .. versionadded:: 0.93 + .. method:: set_attribute(attr, value) + + Set one of the (settable) attributes given by the + :class:`function_attribute` value *attr* to *value*. + + .. versionadded:: 2022.1 + .. attribute:: set_cache_config(fc) See :class:`func_cache` for possible values of *fc*. diff --git a/src/wrapper/wrap_cudadrv.cpp b/src/wrapper/wrap_cudadrv.cpp index 457820a6b967e32c051f43f6e27b838ca7a7784a..01f09189f23e37ab37b73d95075c2ae641889a30 100644 --- a/src/wrapper/wrap_cudadrv.cpp +++ b/src/wrapper/wrap_cudadrv.cpp @@ -979,7 +979,7 @@ BOOST_PYTHON_MODULE(_driver) .value("CACHE_MODE_CA", CU_FUNC_ATTRIBUTE_CACHE_MODE_CA) .value("MAX_DYNAMIC_SHARED_SIZE_BYTES", CU_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES) - .value("CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT", + .value("PREFERRED_SHARED_MEMORY_CARVEOUT", CU_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT) #endif .value("MAX", CU_FUNC_ATTRIBUTE_MAX)