Comments (2)
You can specify -D DEVICE=CL_DEVICE_TYPE_... as a flag to the compiler in the makefile and this replaces the definition sanely at compilation. This works for all the C examples.
If we make all the C and C++ code use default device by default (!) then make a note somewhere of how to alter this easily at compile stage as above that would be sensible and at least run on something straight after compiling without any changes.
from exercises-solutions.
OK, just verified this works on my MBA. So should we always make the device be CL_DEVICE_TYPE_DEFAULT as you suggest, and explain how to override this? Might be safest...
from exercises-solutions.
Related Issues (20)
- C++ timer not working? HOT 2
- Might be a problem with PI on CPU HOT 3
- Inconsistent use of timers HOT 1
- Problem with -fopenmp flag not being recognised with Xcode 5 HOT 1
- Gameoflife example won't build on Mac OS X HOT 1
- Top-level Makefile chooses wrong compiler on Mac OS X HOT 1
- Header file dependencies are missing from some Makefiles HOT 1
- Python solution of Exercise08 prb with C_block_form.cl part HOT 4
- Warning with float initialization HOT 1
- Exercise 6 C and Cpp solutions are incorrect HOT 3
- Matrix multiply host code is too complicated
- DeviceInfo uses wrong types for return values of clGetDeviceInfo
- Missing licence text in all source files
- Bug in one of matrix multiplication versions HOT 1
- How to dynamically size private array length to prevent hard-coding as in C_row_priv.cl? HOT 3
- CL_INVALID_WORK_GROUP_SIZE error in Exercise 07 and 08 HOT 1
- Exercise 2 compiles with OpenMP but it doesn't use it HOT 1
- pyopencl error in excersises 07 solution
- This header is only meant to be used on x86 and x64 architecture
- [Windows] error on exercise 1: '...' is not a member of '`global namespace''
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 exercises-solutions.