Comments (2)
Option 1 is straightforward to implement after I've done som searching and will result in no changes or steps for a Mac user once they have downloaded the examples. The source files check for the APPLE macro so there is no reason that the makefile can't check which platform we are on too. The examples of this I found use uname and check for Darwin.
Will add this to the makefiles.
from exercises-solutions.
I have applied some fixes so that:
- The global makefiles detect the platform
- This defines the
APPLE
variable for the other makefiles - The lower makefiles then set the
-DAPPLE
and-framework OpenCL
flags for the compiler based on the behaviour in the master makefile
This is the latest version (anything above this commit: 82e378e). Would you please be able to test this on your OSX please!
The individual Makefiles don't test the OS, but you could do: APPLE='' make
at the prompt for the same behaviour here.
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.