Comments (7)
This could be a useful thing to do as far as efficiency goes, but most probably it's just folk's OpenCL compilers misconfigured (because they are shipped that way), or those optimised kernels built with an improved procedure. Or the kernels using constants/attributes sub-optimally.
This is an option to consider; however, I think we shouldn't introduce another level of complexity if unneded.
P.S. The defines are passed as CompilerOptions
in ocl.c
, and I don't see why hard-coding them makes a difference.
from sgminer.
hard-coding them can help to change the code. for instance operator x%y when y is equal to 8192 can be changed to x&8191 and a lot of transformations like that can be performed. (not sure that one is not captured by the compiler directly)
But i fully agree with you that we shouldn't introduce another level of complexity if it provides slightly the same perf at the end.
from sgminer.
I've removed the version from kernel file names, which greatly simplifies kernel change inspection using git diff
. As a side effect (along with moving to a separate dir), we don't have to hard-code all available kernel names into the code. Just one "safe default" is enough. This is still done, but is redundant.
With some small modifications, we can allow putting hard-coded .cl
files into dir kernel
, and just using them by specifying the kernel name in config or on command-line. What needs to be implemented is scanning the dir for what's available and loading it if it's requested by the user.
Sorry if this is hard to parse, I'm a bit busy with a pull request now.
from sgminer.
I will not touch it now, i would like to know first if it can improve performance. I try some optimization manually.
If someone has experience on that and can provide feedback, they are welcome.
from sgminer.
With some small modifications, we can allow putting hard-coded .cl files into dir kernel, and just using them by specifying the kernel name in config or on command-line. What needs to be implemented is scanning the dir for what's available and loading it if it's requested by the user.
Working on this in branch kernel-name
ATM.
from sgminer.
Comparison: veox/sgminer@f2934d8...ea9c54a
from sgminer.
superior feature!
from sgminer.
Related Issues (20)
- api-ms-win-core-libraryloader-l1-2-0.dll
- No Error, No Launch HOT 1
- Please Release Compiled Binaries...
- Error with ws2tcpip.h
- can you update AMD ADL SDK link ??? HOT 1
- sha256_fixed and sha256_fresh HOT 1
- Odd jansson problem
- print extranonce1 in log file
- sgminer opencl problem. HOT 1
- test
- Mining rate too low
- LLVM Error HOT 1
- Make error please help ππ
- windows building issues compat.h / unistd.h
- lpthread problem in android HOT 18
- Miner literally returns nothing.
- WARNING: GPU_USE_SYNC_OBJECTS
- Bitcoin Diamond is the internetβs native currency
- help
- /usr/bin/ld: sgminer-api.o:(.bss+0xe0): multiple definition of `opencl_drv'; sgminer-sgminer.o:(.bss+0x16e0): first defined here
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sgminer.