# Set Cache Configuration using CUDAdrv or CUDAnative

**URL:** <https://discourse.julialang.org/t/set-cache-configuration-using-cudadrv-or-cudanative/7675>\
**Category:** GPU\
**Created:** [December 10, 2017, 5:03pm UTC](https://discourse.julialang.org/t/set-cache-configuration-using-cudadrv-or-cudanative/7675 "2017-12-10T17:03:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drjoke](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/drjoke/32/23562_2.png) [@drjoke](https://discourse.julialang.org/u/drjoke)\
**Post date:** [December 10, 2017, 5:03pm UTC](https://discourse.julialang.org/t/set-cache-configuration-using-cudadrv-or-cudanative/7675/1 "2017-12-10T17:03:35Z")

</div>

Similar to

```julia
cudaFuncSetCacheConfig(fooKernel, cudaFuncCachePreferL1)

```

I cannot find any example on how to do this. Is it possible?

---

<div class="post-metadata">

**Author:** ![vchuravy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vchuravy/32/8_2.png) [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Post date:** [December 10, 2017, 5:38pm UTC](https://discourse.julialang.org/t/set-cache-configuration-using-cudadrv-or-cudanative/7675/2 "2017-12-10T17:38:20Z")

</div>

It is certainly possible, but it is not currently something exposed by CUDAdrv.jl  
If you feel up to it that would be great first contribution to CUDAdrv.jl you would need to wrap and expose the functions documented here:

[http://docs.nvidia.com/cuda/cuda-driver-api/group\_\_CUDA\_\_EXEC.html](http://docs.nvidia.com/cuda/cuda-driver-api/group __CUDA__ EXEC.html)
