Skip to content

ozneroL541/Perfect_Numbers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Perfect Numbers

A program to calculate perfect numbers.

Index

Description

This program aims to calculate Perfect Numbers.

Download

Download the source code from Github

git clone https://github.com/ozneroL541/Perfect_Numbers.git

Compilation

Requirements

To compile this program you need a make utility and a C compiler beetween Intel oneAPI DPC++/C++ Compiler and GNU Compiler Collection.

By default the make file will use ICX if avaiable, otherwise GCC will be used. To compile for NVIDIA GPU you need CUDA.

Compilation

To compile for CPU run:

 make

To compile for NVIDIA run:

make -f Makefile.cuda -j$(nproc)

Execution

CPU optimized

To execute the program on Posix Operative Systems run:

bin/perfect_c

On Windows run:

bin/perfect_c.exe

GPU optimized

To execute the program on Posix Operative Systems run:

bin/perfect_cu

On Windows run:

bin/perfect_cu.exe

Documentation

To document this software use:

doxygen docfile

Author

  • Radice Lorenzo @ozneroL541

License

GPU_Stress is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

GPU_Stress is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GPU_Stress. If not, see http://www.gnu.org/licenses/.

About

A program to print perfect numbers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published