• Stars
    star
    1,124
  • Rank 39,865 (Top 0.9 %)
  • Language
    Julia
  • License
    Other
  • Created over 4 years ago
  • Updated 26 days ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

CUDA programming in Julia.

CUDA.jl

CUDA programming in Julia

The CUDA.jl package is the main programming interface for working with NVIDIA CUDA GPUs using Julia. It features a user-friendly array abstraction, a compiler for writing CUDA kernels in Julia, and wrappers for various CUDA libraries.

Requirements

The latest development version of CUDA.jl requires Julia 1.8 or higher. If you are using an older version of Julia, you need to use a previous version of CUDA.jl. This will happen automatically when you install the package using Julia's package manager.

CUDA.jl currently also requires a CUDA-capable GPU with compute capability 3.5 (Kepler) or higher, and an accompanying NVIDIA driver with support for CUDA 11.0 or newer. These requirements are not enforced by the Julia package manager when installing CUDA.jl. Depending on your system and GPU, you may need to install an older version of the package:

  • CUDA.jl v4.4 will be the last version with support for CUDA 11.0-11.3 (deprecated in v5.0)
  • CUDA.jl v4.0 is the last version to work with CUDA 10.2 (removed in v4.1)
  • CUDA.jl v3.13 is the last version to work with CUDA 10.1 (removed in v4.0)
  • CUDA.jl v1.3 is the last version to work with CUDA 9-10.0 (removed in v2.0)

Finally, you should be using a platform supported by NVIDIA. Currently, that means using 64-bit Linux or Windows, with an X86, ARM, or PowerPC host processor.

Quick start

Before all, make sure you have a recent NVIDIA driver. On Windows, also make sure you have the Visual C++ redistributable installed. You do not need to install the CUDA Toolkit.

CUDA.jl can be installed with the Julia package manager. From the Julia REPL, type ] to enter the Pkg REPL mode and run:

pkg> add CUDA

Or, equivalently, via the Pkg API:

julia> import Pkg; Pkg.add("CUDA")

For an overview of the CUDA toolchain in use, you can run the following command after importing the package:

julia> using CUDA

julia> CUDA.versioninfo()

This may take a while, as it will precompile the package and download a suitable version of the CUDA toolkit. If your GPU is not fully supported, the above command (or any other command that initializes the toolkit) will issue a warning.

For more usage instructions and other information, please refer to the documentation.

Supporting and Citing

Much of the software in this ecosystem was developed as part of academic research. If you would like to help support it, please star the repository as such metrics may help us secure funding in the future. If you use our software as part of your research, teaching, or other activities, we would be grateful if you could cite our work. The CITATION.bib file in the root of this repository lists the relevant papers.

Project Status

The package is tested against, and being developed for, Julia 1.6 and above. Main development and testing happens on x86 Linux, but the package is expected to work on Windows, and on ARM and PowerPC as well.

Questions and Contributions

Usage questions can be posted on the Julia Discourse forum under the GPU domain and/or in the #gpu channel of the Julia Slack.

Contributions are very welcome, as are feature requests and suggestions. Please open an issue if you encounter any problems.

More Repositories

1

CUDAnative.jl

Julia support for native CUDA programming
Julia
390
star
2

KernelAbstractions.jl

Heterogeneous programming in Julia
Julia
330
star
3

Metal.jl

Metal programming in Julia
Julia
320
star
4

GPUArrays.jl

Reusable array functionality for Julia's various GPU backends.
Julia
304
star
5

CuArrays.jl

A Curious Cumulation of CUDA Cuisine
Julia
281
star
6

OpenCL.jl

OpenCL Julia bindings
Julia
263
star
7

AMDGPU.jl

AMD GPU (ROCm) programming in Julia
Julia
263
star
8

XLA.jl

Julia on TPUs
Julia
224
star
9

ArrayFire.jl

Julia wrapper for the ArrayFire library
Julia
201
star
10

oneAPI.jl

Julia support for the oneAPI programming toolkit.
Julia
171
star
11

GPUCompiler.jl

Reusable compiler infrastructure for Julia GPU backends.
Julia
141
star
12

Vulkan.jl

Using Vulkan from Julia
Julia
106
star
13

Adapt.jl

Julia
79
star
14

VulkanCore.jl

Julia bindings for the Vulkan API
Julia
75
star
15

GemmKernels.jl

Flexible and performant GEMM kernels in Julia
Julia
69
star
16

CUDAdrv.jl

A Julia wrapper for the CUDA driver API.
Julia
65
star
17

CLArrays.jl

OpenCL-backed GPU Arrays
Julia
61
star
18

AMDGPUnative.jl

Julia interface to AMD/Radeon GPUs
Julia
55
star
19

DaggerGPU.jl

GPU integrations for Dagger.jl
Julia
47
star
20

NVTX.jl

Julia bindings for NVTX, for instrumenting with the Nvidia Nsight Systems profiler
Julia
25
star
21

gitlab-ci

Resources related to the JuliaGPU GitLab CI.
Dockerfile
25
star
22

juliagpu.org

The JuliaGPU landing page.
HTML
23
star
23

CLBLAS.jl

CLBLAS integration for Julia
Julia
22
star
24

docker

Docker recipes for Julia builds with JuliaGPU packages.
Julia
21
star
25

NCCL.jl

A Julia wrapper for the NVIDIA Collective Communications Library.
Julia
20
star
26

buildkite

Dockerfile
19
star
27

ROCArrays.jl

Parallel on the ROCks
Julia
18
star
28

julia-ngc

Dockerfile
16
star
29

CLFFT.jl

Julia bindings for AMD's clFFT library
Julia
16
star
30

CUDAapi.jl

Reusable components for CUDA API development.
Julia
16
star
31

HSARuntime.jl

Julia interface to the HSA runtime, for supporting AMD GPUs
Julia
15
star
32

CLBlast.jl

Julia wrapper of CLBlast, a "tuned OpenCL BLAS library".
Julia
12
star
33

CUDAnativelib.jl

Julia
12
star
34

AMGX.jl

Julia
11
star
35

GPUBenchmarks.jl

Benchmarking Julia's GPUArray packages
Julia
8
star
36

HSA.jl

Julia Bindings for the HSA Runtime
Julia
8
star
37

BinomialGPU.jl

A Julia package for sampling binomial random variates on an nVidia GPU
Julia
7
star
38

CUDABuilder

Julia
6
star
39

GPUShowcases.jl

Indepth examples and show cases for GPUArrays
Julia
6
star
40

SPIRV.jl

SPIRV codegen for Julia
Julia
4
star
41

meta

Place for discussing general Julia GPGPU related topics
4
star
42

ROCTX.jl

Julia bindings for ROC-TX
Julia
3
star
43

Learning

Learning materials for GPU programming in Julia.
Jupyter Notebook
3
star
44

CUDA_Driver.jl

Julia
1
star
45

ROCmDeviceLibsDownloader

A BB "builder" repository for ROCm-Device-Libs bitcode
Julia
1
star