Skip to content

回复:新的演示用 CPU 矿工程序现已发布 ​

原始发布页

打开来源页面
查看 1 个交叉存档

你应该尝试把它与 sha256.cpp 中 tcatm 的 4-way SSE2 SHA 配合使用。它作为 C 文件可以正常编译,只需把 sha256.cpp 重命名为 sha256.c。我在 Windows 上进行简单测试时成功让它运行起来了,但把它链接进 Bitcoin 时不行。如果将它作为 C 程序而不是 C++ 程序的一部分,成功运行的可能性或许更高。

目前它只在 Linux 构建版本中启用,所以如果你能让它运行起来,就可以让 Windows 用户也用上它。在 AMD CPU 上,速度大约能提高 100%。

英文原文 ​

展开英文原文

You should try it with tcatm's 4-way SSE2 SHA in sha256.cpp. It compiles fine as a C file, just rename sha256.cpp to sha256.c. I was able to get it to work in simple tests on Windows, but not when linked in with Bitcoin. It may have a better chance of working as part of a C program instead of C++.

Currently it's only enabled in the Linux build, so if you get it to work you could make it available to Windows users. It's about 100% speedup on AMD CPUs.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。