Created
October 12, 2013 19:45
-
-
Save mnmnm/6954063 to your computer and use it in GitHub Desktop.
This file contains 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 -rupBd vanitygen.worked.with.amd.12.10/Makefile vanitygen/Makefile | |
--- vanitygen.worked.with.amd.12.10/Makefile 2013-10-12 21:41:45.568631937 +0200 | |
+++ vanitygen/Makefile 2013-07-27 22:10:03.246539574 +0200 | |
@@ -1,5 +1,5 @@ | |
-LIBS=-lpcre -lcrypto -lm -lpthread | |
-CFLAGS=-ggdb -O3 -Wall | |
+LIBS=-lpcre -lm -lpthread -ldl | |
+CFLAGS=-ggdb -O3 -Wall -I ../../openssl-1.0.1e/include ../../openssl-1.0.1e/libcrypto.a -I /opt/AMDAPP/include -L /opt/AMDAPP/lib | |
OBJS=vanitygen.o oclvanitygen.o oclvanityminer.o oclengine.o keyconv.o pattern.o util.o | |
PROGS=vanitygen keyconv oclvanitygen oclvanityminer | |
@@ -11,7 +11,7 @@ OPENCL_LIBS=-lOpenCL | |
endif | |
-most: vanitygen keyconv | |
+most: oclvanitygen | |
all: $(PROGS) | |
@@ -28,4 +28,6 @@ keyconv: keyconv.o util.o | |
$(CC) $^ -o $@ $(CFLAGS) $(LIBS) | |
clean: | |
- rm -f $(OBJS) $(PROGS) $(TESTS) | |
+ rm -f $(OBJS) $(PROGS) $(TESTS) *oclbin | |
+ | |
+ | |
diff -rupBd vanitygen.worked.with.amd.12.10/oclengine.c vanitygen/oclengine.c | |
--- vanitygen.worked.with.amd.12.10/oclengine.c 2013-10-12 21:41:45.569631949 +0200 | |
+++ vanitygen/oclengine.c 2013-07-28 17:09:27.207382598 +0200 | |
@@ -447,6 +449,8 @@ vg_ocl_get_quirks(vg_ocl_context_t *vocp | |
dvn = vg_ocl_device_getstr(vocp->voc_ocldid, | |
CL_DEVICE_NAME); | |
+ if (!strcmp(dvn, "Tahiti") || !strcmp(dvn, "Pitcairn")) | |
+ quirks &= ~VG_OCL_AMD_BFI_INT; | |
if (!strcmp(dvn, "ATI RV710")) { | |
quirks &= ~VG_OCL_OPTIMIZATIONS; | |
quirks |= VG_OCL_NO_BINARIES; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment