HaveF / gpuocelot

Automatically exported from code.google.com/p/gpuocelot
0 stars 0 forks source link

include librt alternative in OSX using #76

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile in OS X

What is the expected output? What do you see instead?
OSX does not have linux librt libraries, needs to instead use 
mach_absolute_time()

Please provide any additional information below.
Boilerplate solution to clock_gettime  is attached. Still needs _settime, 
_nanosleep and _getres.

http://pastebin.com/kkDrM0zt

Original issue reported on code.google.com by dashd...@gmail.com on 7 Sep 2012 at 3:33

Attachments: