Comments (3)
Well.. the opencl is generated at runtime, not at compile time. This is because we only find out a lot of key type and address space information at runtime.
You can dump the opencl files at runtime though, by doing export COCL_DUMP_CL=1
, see https://github.com/hughperkins/coriander/blob/master/doc/options.md
from coriander.
ok..thanks a lot !
besides, suppose I don't have any gpus, and I want to run it on a cpu, how can I change the config from gpu to cpu? Surely I know it might encounter some problems, but I still want to give it a try :-P
Since in your another project : https://github.com/hughperkins/tf-coriander/ , I have tried it on a cpu, and it does work.
thanks for your attention~
from coriander.
What do you mean by 'run on a cpu'? Coriander will work only on OpenCL 1.2 devices. If you want to run it on an OpenCL 1.2 CPU, bearing in mind it wont actually run, because the workgroup sizes are too big, but if you want to tweak the workgroup sizes, you'd need to hack on this line, https://github.com/hughperkins/coriander/blob/master/src/cocl_context.cpp#L43
cocl::CoclDevice *coclDevice = cocl::getCoclDeviceByGpuOrdinal(gpuOrdinal);
which calls into https://github.com/hughperkins/coriander/blob/master/src/cocl_device.cpp#L108-L120
...and modify something about this so it can return CPU OpenCL devices, instead of just GPU OpenCL devices. As you state, this wont work very well though, and you'll need to hack around with workgroup sizes and so on.
from coriander.
Related Issues (20)
- cocl_py cuda_sample.cu dont work HOT 3
- when run "make -j 8 tests", something went wrong,seems like the "PIE object" problem. HOT 5
- How much work would it be to update to OpenCL 3.0/Cuda 12...cuda has always been back wards compatable HOT 1
- CMake issues
- Cython Integration
- i.MX8M Vivante GPU not working (Sorry I messed up, delete this)
- i.MX8M Vivante GPU Not Working HOT 1
- MacOS installation error [Errno 2] No such file or directory HOT 3
- tests compilation problem HOT 1
- run install and get error HOT 1
- I'm extremely impressed by this project. HOT 2
- questions about cuda api HOT 1
- Windows installation HOT 1
- help with make run-tests HOT 1
- Issue installing on MacOS10.15.5 HOT 2
- Question about generating an executable with multiple source files HOT 1
- Success compiling and running cuda_example.cu on Apple M1 Big sur HOT 1
- diffs to compile for clang 9
- documenting fix for clang error: reference to host function from device HOT 1
- update on compiling with big sure and clang11: HOT 8
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 coriander.