# CUDA Optimization Without NVCC | Eugo - The Performance Cloud

Eugo compiles the open-source CUDA stack, from kernels to libraries, with LLVM clang++: one toolchain and one ABI for host and device code.

Source: https://eugo.io/platform/cuda

---

# CUDA Optimization Without NVCC

Eugo compiles the open-source CUDA stack, from kernels to libraries, with LLVM clang++: one toolchain and one ABI for host and device code.

Request Demo Documentation

## Why LLVM Instead of NVCC?

NVIDIA's nvcc is the standard CUDA compiler driver, but Eugo takes a different approach. We compile all CUDA code with LLVM clang++ exclusively, giving us a single, consistent toolchain across the entire stack.

This unified LLVM approach means host and device code share the same compiler infrastructure, enabling:

- One toolchain, one ABI: A single compiler for both host and device code eliminates ABI mismatches between separately compiled components.
- Device LTO where it pays: NCCL, for example, is linked with whole-program device LTO, while libraries whose kernels each sit in one file are compiled per file.
- Profile-guided optimization (PGO): LLVM's PGO infrastructure works uniformly across the codebase.

## CUDA Capabilities

Every aspect of GPU computing, optimized end-to-end with a unified LLVM toolchain.

### LLVM Clang++ for CUDA

Eugo compiles all CUDA code exclusively with LLVM's clang++. No NVCC, no GCC. Just one unified toolchain that enables consistent optimization across host and device code. This gives us custom LLVM passes, link-time optimization (thinLTO), and profile-guided optimization (PGO) across the entire CUDA codebase where possible.

### Architecture-Specific Compilation

The open-source CUDA libraries in our stack, such as PyTorch and NCCL, are compiled from source for the specific GPU architectures we run, with ThinLTO on the host side, instead of shipped as generic pre-built wheels.

### Mixed-Precision by Default

Eugo builds PyTorch and the CUDA libraries under it from source with bf16, fp16 and fp32 support, so PyTorch's own mixed-precision training (autocast) is ready to use.

### Multi-GPU Scaling

Multi-GPU communication runs on NCCL, built from source with our LLVM/Clang toolchain from our own fork of NVIDIA's NCCL. NCCL's own topology detection and algorithm selection choose the path between GPUs for all-reduce, all-gather and point-to-point traffic.

### Custom PyTorch & NCCL Forks

Our PyTorch and NCCL forks are compiled from source with our LLVM toolchain for the GPUs we run, instead of the generic published wheels.

### Infrastructure-Level GPU Optimization

Eugo builds the GPU networking stack into its images: rdma-core (including the drivers for NVIDIA ConnectX and AWS EFA network cards), libfabric, UCX and GDRCopy, plus hwloc and libnuma so software can see the hardware layout. Support for NCCL over AWS's Elastic Fabric Adapter (EFA) is in progress.

## GPU Computing, Done Right

Get CUDA performance that matches the hardware's true potential without fighting the toolchain.

Request Demo
