OSDN Git Service

Try (#1165)
authorHAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com>
Tue, 24 Jul 2018 11:24:51 +0000 (19:24 +0800)
committerPaladz <yzhu101@uottawa.ca>
Tue, 24 Jul 2018 11:24:51 +0000 (19:24 +0800)
* Add simd tag

* Clean up Makefile

* Request CI again

* Fix link option for Darwin

* Update readme

README.md
mining/tensority/cgo_algorithm/algorithm_simd.go

index c7aa973..53749f4 100644 (file)
--- a/README.md
+++ b/README.md
@@ -76,6 +76,20 @@ $ make bytomcli  # build bytomcli
 
 When successfully building the project, the `bytom` and `bytomcli` binary should be present in `cmd/bytomd` and `cmd/bytomcli` directory, respectively.
 
+__simd feature:__
+
+You could enable the _simd_ feature to speed up the _PoW_ verification (e.g., during mining and block verification) by simply:
+```
+bytomd node --simd.enable
+```
+
+To enable this feature you will need to compile from the source code by yourself, and `make bytomd-simd`. 
+
+What is more,
+
++ if you are using _Mac_, please make sure _llvm_ is installed by `brew install llvm`.
++ if you are using _Windows_, please make sure _mingw-w64_ is installed and set up the _PATH_ environment variable accordingly.
+
 ## Example
 
 Currently, bytom is still in active development and a ton of work needs to be done, but we also provide the following content for these eager to do something with `bytom`. This section won't cover all the commands of `bytomd` and `bytomcli` at length, for more information, please the help of every command, e.g., `bytomcli help`.
index 2371f80..29591d8 100644 (file)
@@ -5,7 +5,7 @@ package cgo_algorithm
 // #cgo !darwin CFLAGS: -I.
 // #cgo !darwin LDFLAGS: -L. -l:./lib/cSimdTs.o -lstdc++ -lgomp -lpthread
 // #cgo darwin CFLAGS: -I. -I/usr/local/opt/llvm/include
-// #cgo darwin LDFLAGS: -L. -l:./lib/cSimdTs.o -lstdc++ -lomp -L/usr/local/opt/llvm/lib
+// #cgo darwin LDFLAGS: -L. -l./lib/cSimdTs.o -lstdc++ -lomp -L/usr/local/opt/llvm/lib
 // #include "./lib/cSimdTs.h"
 import "C"