Skip to content

Commit

Permalink
NeoScrypt CUDAminer v1.0.0
Browse files Browse the repository at this point in the history
Supports Stratum and GetWork.
For NVIDIA GPUs with compute capability 5.0 and higher.
  • Loading branch information
ghostlander committed Feb 5, 2018
0 parents commit 77eb5dd
Show file tree
Hide file tree
Showing 77 changed files with 27,642 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
53 changes: 53 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

cudaminer
*.o

autom4te.cache
.deps

Makefile
Makefile.in
INSTALL
aclocal.m4
configure
configure.lineno
depcomp
missing
install-sh
stamp-h1
cudaminer-config.h.*
compile
config.log
config.status
config.status.lineno
config.guess
config.sub

mingw32-config.cache

*/.dirstamp
.DS_Store
Desktop.ini
Thumbs.db

*.iml

Debug/
Release/
x64/Debug/
x64/Release/
*.suo
*.user
*.opensdf
*.sdf
*.pdb

.settings/
.project
.metadata
.classpath
.loadpath
.cproject
.buildpath

*.suo
885 changes: 885 additions & 0 deletions LICENCE

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# allow to use Host cuda functions in C/C++
DEF_INCLUDES = @CUDA_INCLUDES@

if WANT_JANSSON
JANSSON_INCLUDES= -I$(top_srcdir)/compat/jansson
else
JANSSON_INCLUDES=
endif

EXTRA_DIST = autogen.sh README.txt LICENSE.txt \
cudaminer.sln cudaminer.vcxproj cudaminer.vcxproj.filters \
compat/gettimeofday.c compat/getopt/getopt_long.c cudaminer-config.h.in

SUBDIRS = compat

bin_PROGRAMS = cudaminer

cudaminer_SOURCES = elist.h miner.h compat.h \
compat/inttypes.h compat/stdbool.h compat/unistd.h \
compat/sys/time.h compat/getopt/getopt.h \
crc32.cpp sha256.cpp \
cudaminer.cpp util.cpp log.cpp \
api.cpp hashlog.cpp nvml.cpp stats.cpp sysinfos.cpp cuda.cpp \
neoscrypt.h neoscrypt.c \
neoscrypt/scanhash_neoscrypt.cpp neoscrypt/cuda_neoscrypt.cu

if HAVE_NVML
nvml_defs = -DUSE_WRAPNVML
nvml_libs = -ldl
endif

if HAVE_WINDOWS
cudaminer_SOURCES += compat/winansi.c
endif

cudaminer_LDFLAGS = $(PTHREAD_FLAGS) @CUDA_LDFLAGS@
cudaminer_LDADD = -lcurl @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ @CUDA_LIBS@ @OPENMP_CFLAGS@ @LIBS@ $(nvml_libs)
cudaminer_CPPFLAGS = @OPENMP_CFLAGS@ $(CPPFLAGS) $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) $(DEF_INCLUDES) $(nvml_defs)

nvcc_ARCH = -gencode=arch=compute_50,code=\"sm_50,compute_50\"
#nvcc_ARCH += -gencode=arch=compute_52,code=\"sm_52,compute_52\"
#nvcc_ARCH += -gencode=arch=compute_61,code=\"sm_61,compute_61\"

nvcc_FLAGS = $(nvcc_ARCH) @CUDA_INCLUDES@ -I. @CUDA_CFLAGS@
nvcc_FLAGS += $(JANSSON_INCLUDES) --ptxas-options="-v"

# we're now targeting all major compute architectures within one binary.
.cu.o:
$(NVCC) $(nvcc_FLAGS) --maxrregcount=128 -o $@ -c $<
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@

NeoScrypt CUDAminer
=======

NeoScrypt only. All other algorithms have been removed.

Doesn't depend on OpenSSL and Zlib any more. Only the cURL library
required (also pthreadVC2 and NVAPI on Windows).

To be compiled with GCC v4.7+ on Linux and Visual Studio 2010
(or vs2010 target in newer Visual Studio distributions) on Windows XP
and up the way, 32-bit and 64-bit.

Supports the NVIDIA Maxwell and Pascal architecture GPUs only.

Regards,
John Doering aka Ghostlander
16 changes: 16 additions & 0 deletions WINDOWS-BUILD.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
In order to build this NeoScrypt CUDAminer on Windows, you need the following:

1) the NVIDIA CUDA Toolkit 6.5 or newer installed;

2) Microsoft Visual Studio 2010, express or any commercial, though a newer one
may do as long as it's supported by the CUDA Toolkit;

3) any not so old NVAPI distribution (copy headers to compat/nvapi and nvapi.lib
to compat/lib32 or compat/lib64 or both);

4) the cURL library from https://curl.haxx.se (copy headers to compat/curl and
curl.lib to compat/lib32 or compat/lib64 or both);

5) the pthreadVC2 library from http://sourceware.org/pthreads-win32
(copy pthread.h and sched.h to compat/pthreads and pthreadVC2.lib to
compat/lib32 or compat/lib64 or both).
Loading

0 comments on commit 77eb5dd

Please sign in to comment.