GPU Developer's Guide
  • 1. Introduction
  • 2. GPU Execution Architecture in CODE.HEAAN
  • 3. Start a new project with HEaaN
    • 3-1. Create Project Directory
    • 3-2. Set up Basic Directory Structure
    • 3-3. CMake Configuration
    • 3-4. Build and Compile
    • 3-5. Run (gpu-run)
    • 3-6. Check the results
    • Additional tips
  • 4. Example Codes
    • 4-1. CUDA
    • 4-2. HEaaN End to End Example
  • HEaaN GPU Guideline
    • HEaaN GPU Component Overview
    • CudaTools
    • Device Class
    • HEaaN GPU API in use
  • Not supported features
Powered by GitBook

Copyright©️ 2025 CryptoLab, Inc. All rights reserved.

On this page

Was this helpful?

4. Example Codes

This chapter contains ready-to-use code examples for HEaaN and CUDA that you can reference for your projects.

The examples include:

  • Basic CUDA code to retrieve GPU device information

  • Complete HEaaN encryption workflow with GPU acceleration

Each example is fully commented to help you understand the implementation details.

Use these examples as starting points for your own HEaaN projects.

PreviousAdditional tipsNext4-1. CUDA

Last updated 16 days ago

Was this helpful?