GithubHelp home page GithubHelp logo

replicam / cudalucas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bleusquid/cudalucas

0.0 0.0 0.0 204 KB

CUDA implementation of Lucas-Lehmer primality test for Mersenne numbers. Code from http://mersenneforum.org/showthread.php?t=12576

C++ 15.31% C 84.69%

cudalucas's Introduction

Assuming that you've setup your CUDA environment all ready...

	You may need to adjust:
		NVIDIA_SDK -> The location of the nvidia sdk.
		LIBS -> The location of cudart.lib and the cufft.lib
		CUFLAGS -> check the following flags
			-ccbin --> set to the location of your compiler.
			-IC:/CUDA/v3.2/include 			<-- set to the location of cuda header files
			-IC:/CUDA/v3.2/include/cudart	<-- set to the location of cudart header files
	

#########################################################################
# Installation (Linux, CUDA >= 3.0 (might work on older releases, too)) #
#########################################################################

Makefile assumes that nvcc is in the path. Redefine NVCC if nvcc is not in your path.
Likewise, add the appropriate -I includes and -L libdirs to the COMMON_INCLUDES and
COMMON_LIBS, respectively.

To build, just run "make"

#########################################################################
# Installation  Windows
#########################################################################

A GNU compatible version of make is also required as
the Makefile is not compatible with nmake. GNU Make for Win32 can be dowloaded
from http://gnuwin32.sourceforge.net/packages/make.htm.


Rename makefile.win64 or makefile.win32 to Makefile 

Adjust the path to your CUDA installation as desribed above in "Makefile" and run 'make'.

Run the Visual Studio command prompt for 32 bit builds or the  x64 Command Prompt for 64 bit builds and change into the 
subdirectory where the source files are and run make.

Note: You can not compile using a 64 bit cuda installation on a 32 bit platform.

cudalucas's People

Contributors

bleusquid 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.