Last active
January 1, 2016 04:09
-
-
Save agrif/8089831 to your computer and use it in GitHub Desktop.
goes in net-p2p/cudaminer, patch goes in net-p2p/cudaminer/files, remember to run ebuild *.ebuild digest
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/Makefile.am b/Makefile.am | |
| index ca325f1..17d47ab 100644 | |
| --- a/Makefile.am | |
| +++ b/Makefile.am | |
| @@ -32,19 +32,19 @@ cudaminer_LDADD = @LIBCURL@ @JANSSON_LIBS@ @PTHREAD_LIBS@ @WS2_LIBS@ @CUDA_LIBS | |
| cudaminer_CPPFLAGS = -msse2 @LIBCURL_CPPFLAGS@ @OPENMP_CFLAGS@ $(PTHREAD_FLAGS) -fno-strict-aliasing $(JANSSON_INCLUDES) | |
| .cu.o: | |
| - $(NVCC) @CFLAGS@ -Xptxas "-abi=no -v" -arch=compute_10 --maxrregcount=64 --ptxas-options=-v $(JANSSON_INCLUDES) -o $@ -c $< | |
| + $(NVCC) -O3 -Xptxas "-abi=no -v" -arch=compute_10 --maxrregcount=64 --ptxas-options=-v $(JANSSON_INCLUDES) -o $@ -c $< | |
| spinlock_kernel.o: spinlock_kernel.cu | |
| - $(NVCC) @CFLAGS@ -Xptxas "-abi=no -v" -arch=compute_12 --maxrregcount=64 $(JANSSON_INCLUDES) -o $@ -c $< | |
| + $(NVCC) -O3 -Xptxas "-abi=no -v" -arch=compute_12 --maxrregcount=64 $(JANSSON_INCLUDES) -o $@ -c $< | |
| fermi_kernel.o: fermi_kernel.cu | |
| - $(NVCC) @CFLAGS@ -Xptxas "-abi=no -v" -arch=sm_20 --maxrregcount=63 $(JANSSON_INCLUDES) -o $@ -c $< | |
| + $(NVCC) -O3 -Xptxas "-abi=no -v" -arch=sm_20 --maxrregcount=63 $(JANSSON_INCLUDES) -o $@ -c $< | |
| kepler_kernel.o: kepler_kernel.cu | |
| - $(NVCC) @CFLAGS@ -Xptxas "-abi=no -v" -arch=sm_30 --maxrregcount=32 $(JANSSON_INCLUDES) -o $@ -c $< | |
| + $(NVCC) -O3 -Xptxas "-abi=no -v" -arch=sm_30 --maxrregcount=32 $(JANSSON_INCLUDES) -o $@ -c $< | |
| titan_kernel.o: titan_kernel.cu | |
| - $(NVCC) @CFLAGS@ -Xptxas "-abi=no -v" -arch=sm_35 --maxrregcount=32 $(JANSSON_INCLUDES) -o $@ -c $< | |
| + $(NVCC) -O3 -Xptxas "-abi=no -v" -arch=sm_35 --maxrregcount=32 $(JANSSON_INCLUDES) -o $@ -c $< | |
| test_kernel.o: test_kernel.cu | |
| - $(NVCC) @CFLAGS@ -Xptxas "-abi=no -v" -arch=sm_30 --maxrregcount=32 $(JANSSON_INCLUDES) -o $@ -c $< | |
| + $(NVCC) -O3 -Xptxas "-abi=no -v" -arch=sm_30 --maxrregcount=32 $(JANSSON_INCLUDES) -o $@ -c $< |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EAPI=4 | |
| inherit autotools git-2 | |
| DESCRIPTION="a CUDA accelerated litecoin mining application based on pooler's CPU miner" | |
| HOMEPAGE="https://github.com/cbuchner1/CudaMiner" | |
| EGIT_REPO_URI="https://github.com/cbuchner1/CudaMiner.git" | |
| LICENSE="GPL-3" | |
| SLOT="0" | |
| KEYWORDS="" | |
| IUSE="" | |
| RDEPEND=">=dev-util/nvidia-cuda-toolkit-5.5.0" | |
| DEPEND="${RDEPEND} >=dev-util/nvidia-cuda-sdk-5.5.0" | |
| DOCS=( README.txt LICENSE.txt ) | |
| src_prepare() { | |
| epatch "${FILESDIR}"/${PN}-9999-nvcc-flags.patch | |
| eautoreconf | |
| } | |
| src_configure() { | |
| econf --with-cuda=/opt/cuda | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment