Code Monkey home page Code Monkey logo

aes's Introduction

AES encryption algorithm

AES algorithm in cuda and CPU/GPU openmp

Developed based on https://github.com/franneck94/CUDA-AES

Book from http://www.crypto-textbook.com/ Chapter4

Usage

All the tests are under NYU Greene cluster. All makefiles are well-written in the subdirectories.

Note that there are some sample text files to test, so text_file_number below can be 1,2,3,4,41,5,51,6,61. Default set to 1.

  1. AES_CUDA compile:
ssh burst
# distribute a GPU node
srun --account=csci_ga_3033_025-2022fa --partition=n1s8-v100-1 --gres=gpu:v100:1 --time=00:40:00 --pty /bin/bash 
# Use a singularity image
/share/apps/gcc/run-cuda-11.6.bash
# cd to the AES_CUDA directory
make

Usage:

./AES_CUDA text_file_number

#use nvprof to profile GPU utilization:
nvprof ./AES_CUDA text_file_number
  1. AES_SEQ, AES_OMPC, AES_OMPG compile:
ssh burst
# distribute a GPU node
srun --account=csci_ga_3033_025-2022fa --partition=n1s8-v100-1 --gres=gpu:v100:1 --time=00:40:00 --pty /bin/bash 
# Use a singularity image (different than above)
/share/apps/gcc/run-gcc-offload-nvptx-12.2.0.bash
# cd to the AES_() directory
make

Usage:

./AES_SEQ text_file_number
./AES_OMPC  text_file_number num_threads
./AES_OMPG  text_file_number num_threads
  1. The unit tests are in AES/exec/run.sh, the output is in AES/exec/out.txt, and the executables in NYU Greene cluster GPU are in AES/exec/.
sh run.sh > out.txt 2>&1 &

aes's People

Contributors

abigailcy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.