dmarcuse / turbokrist

The first-ever GPU accelerated Krist miner - using Java and OpenCL.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenCL files fail to compile on OS X

1lann opened this issue · comments

com.nativelibs4java.opencl.CLBuildException: Compilation failure :  (devices: [Iris Pro (Apple)])
<program source>:68:6: error: no previous prototype for function 'digest'
void digest(byte* data, uint inputLen, byte* hash) {
     ^
<program source>:165:6: error: no previous prototype for function 'hashToLong'
long hashToLong(byte* hash) {
     ^
<program source>:170:6: error: no previous prototype for function 'longToHex'
void longToHex(long in, byte* hex, int offset) {
     ^
<program source>:243:9: error: comparison of integers of different signs: 'int' and 'unsigned long'
        if (id < sizeof(K)) {
     ~~ ^ ~~~~~~~~~

Occurs during the :test phase of the build.

Can you try putting a 'static' modifier before each erroneous function definition? i.e.

static void digest(...) {...}

I've pushed a possible fix in c6282a0. Can you see if it's still having problems?

Will test, I made my own changes and I have this error now:

com.nativelibs4java.opencl.CLBuildException: Compilation failure :  (devices: [Iris Pro (Apple)])
Compile Server Error.
    at com.nativelibs4java.opencl.CLProgram.build(CLProgram.java:846)
    at me.apemanzilla.krist.turbokrist.opencl.ProgramBuilder.build(ProgramBuilder.java:104)
    at me.apemanzilla.jclminer.tests.OpenCLTest.setUp(OpenCLTest.java:31)

(The tests take like 30 seconds to run each)

This seems to be a bug specific to Apple OpenCL drivers. Can you try the latest code from master and see if it's any different?

You put the ulong type cast on the wrong side :P, I'll fix it and try again.

My bad - it's 11 PM here :P

It's probably better to simply create id as a ulong come to think of it...

Still doesn't work :( same error as described in #9 (comment)

So you're still encountering the same error: no previous prototype for function 'x' error?

Nope, I get

com.nativelibs4java.opencl.CLBuildException: Compilation failure :  (devices: [Iris Pro (Apple)])
Compile Server Error.
    at com.nativelibs4java.opencl.CLProgram.build(CLProgram.java:846)
    at me.apemanzilla.krist.turbokrist.opencl.ProgramBuilder.build(ProgramBuilder.java:104)
    at me.apemanzilla.jclminer.tests.OpenCLTest.setUp(OpenCLTest.java:31)

After around 30 seconds of waiting for each test.

Here's an OpenCL information dump:

PLATFORM_PROFILE:       FULL_PROFILE
PLATFORM_VERSION:       OpenCL 1.2 (Nov 18 2015 20:45:47)
PLATFORM_NAME:      Apple
PLATFORM_VENDOR:        Apple
PLATFORM_EXTENSIONS:    cl_APPLE_SetMemObjectDestructor cl_APPLE_ContextLoggingFunctions cl_APPLE_clut cl_APPLE_query_kernel_names cl_APPLE_gl_sharing cl_khr_gl_event
Devices: 
    name: Intel(R) Core(TM) i7-4870HQ CPU @ 2.50GHz @ 0xc82006b180
    name: Iris Pro @ 0xc82006b188
    name: GeForce GT 750M @ 0xc82006b190

Is there any other information in the test reports? (build/reports/tests/index.html)

Things like STDOUT messages in particular may be useful if present.

The error messages I've been getting are from the test reports. The console just says that the build failed. The test reports don't say anything else.

:test

me.apemanzilla.jclminer.tests.TestCLConstants > testConstant_K FAILED
    com.nativelibs4java.opencl.CLBuildException

me.apemanzilla.jclminer.tests.TestCLHashing > testHashing_digest FAILED
    com.nativelibs4java.opencl.CLBuildException

me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_PAD FAILED
    com.nativelibs4java.opencl.CLBuildException

me.apemanzilla.jclminer.tests.TestCLMacros > testMacro_RR FAILED
    com.nativelibs4java.opencl.CLBuildException

me.apemanzilla.jclminer.tests.TestCLMining > testMining_hashToLong FAILED
    com.nativelibs4java.opencl.CLBuildException

5 tests completed, 5 failed
:test FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':test'.
> There were failing tests. See the report at: file:///Users/jason/Workspace/Java/turbokrist/build/reports/tests/index.html


This is strange. I can't find much info on this specific error except that it's supposedly a bug with Apple's OpenCL drivers, but I find that unlikely TBH. Has this happened compiling other OpenCL code?

Oh... I found the problem in my system logs...

Process:               CVMCompiler [77361]
Path:                  /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/CVMCompiler
Identifier:            CVMCompiler
Version:               119.5
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           CVMCompiler [77361]
User ID:               501

Date/Time:             2016-01-26 20:16:42.091 -0800
OS Version:            Mac OS X 10.11.2 (15C50)
Report Version:        11
Anonymous UUID:        5A1F4EC0-B473-20F1-483C-6201C28A6692

Sleep/Wake UUID:       FC659E7A-62DA-44C7-9239-2CDA7E3A289B

Time Awake Since Boot: 750000 seconds
Time Since Wake:       82000 seconds

System Integrity Protection: enabled

Crashed Thread:        4

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x000000030000002c
Exception Note:        EXC_CORPSE_NOTIFY

VM Regions Near 0x30000002c:
    Process Corpse Info    000000010e7ef000-000000010e9ef000 [ 2048K] rw-/rwx SM=COW  
--> 
    STACK GUARD            0000700000000000-0000700000001000 [    4K] ---/rwx SM=NUL  stack guard for thread 1

Application Specific Information:
Stack dump:
0.  Running pass 'Function Pass Manager' on module '-'.
1.  Running pass 'IGIL DAG->DAG Pattern Instruction Selection' on function '@testRR'


Thread 0:
0   libsystem_kernel.dylib          0x00007fff99c1b21e __semwait_signal_nocancel + 10
1   libsystem_c.dylib               0x00007fff8cf7d338 nanosleep$NOCANCEL + 188
2   libsystem_c.dylib               0x00007fff8cfa5480 sleep$NOCANCEL + 42
3   libdispatch.dylib               0x00007fff8e6b6756 _dispatch_queue_cleanup2 + 140
4   libsystem_pthread.dylib         0x00007fff8e0ef1a1 _pthread_tsd_cleanup + 555
5   libsystem_pthread.dylib         0x00007fff8e0eed28 _pthread_exit + 117
6   libsystem_pthread.dylib         0x00007fff8e0eec92 pthread_exit + 30
7   libdispatch.dylib               0x00007fff8e6b66ac dispatch_main + 43
8   CVMCompiler                     0x000000010b95f143 main + 311
9   libdyld.dylib                   0x00007fff8e6945ad start + 1

Thread 1:
0   libsystem_kernel.dylib          0x00007fff99c1b6de __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8e0ef729 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff8e0ed365 start_wqthread + 13

Thread 2:
0   libsystem_kernel.dylib          0x00007fff99c1b6de __workq_kernreturn + 10
1   libsystem_pthread.dylib         0x00007fff8e0ef729 _pthread_wqthread + 1283
2   libsystem_pthread.dylib         0x00007fff8e0ed365 start_wqthread + 13

Thread 3:: Dispatch queue: com.apple.root.default-qos.overcommit
0   libsystem_kernel.dylib          0x00007fff99c1b4a6 __sigsuspend_nocancel + 10
1   libdispatch.dylib               0x00007fff8e6b67cb _dispatch_sigsuspend + 21
2   libdispatch.dylib               0x00007fff8e6b67b6 _dispatch_sig_thread + 45

Thread 4 Crashed:
0   libLLVMContainer.dylib          0x00007fff9548aa00 getCopyFromParts(llvm::SelectionDAG&, llvm::DebugLoc, llvm::SDValue const*, unsigned int, llvm::EVT, llvm::EVT, llvm::Value const*, llvm::ISD::NodeType) + 5584
1   libLLVMContainer.dylib          0x00007fff9548bf3a llvm::SelectionDAGISel::LowerArguments(llvm::BasicBlock const*) + 3466
2   libLLVMContainer.dylib          0x00007fff9549ad38 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) + 1048
3   libLLVMContainer.dylib          0x00007fff9549a10f llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) + 767
4   libLLVMContainer.dylib          0x00007fff955778e3 llvm::MachineFunctionPass::runOnFunction(llvm::Function&) + 99
5   libLLVMContainer.dylib          0x00007fff95963ba0 llvm::FPPassManager::runOnFunction(llvm::Function&) + 288
6   libLLVMContainer.dylib          0x00007fff95963dcb llvm::FPPassManager::runOnModule(llvm::Module&) + 139
7   libLLVMContainer.dylib          0x00007fff95963fbe llvm::MPPassManager::runOnModule(llvm::Module&) + 382
8   libLLVMContainer.dylib          0x00007fff95964ad4 llvm::PassManagerImpl::run(llvm::Module&) + 340
9   libCLVMIGILPlugin.dylib         0x000000010bba2ca6 generateIgil(llvm::TargetOptions const&, unsigned int, llvm::Module*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&, bool&, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >&) + 2722
10  libCLVMIGILPlugin.dylib         0x000000010bb9f868 cvmsPluginElementBuild + 4745
11  CVMCompiler                     0x000000010b95ed69 cvmsCompBuildElement + 139
12  CVMCompiler                     0x000000010b95f6b6 __cvmsCompInitializeConnection_block_invoke + 1140
13  libxpc.dylib                    0x00007fff8556b396 _xpc_connection_call_event_handler + 35
14  libxpc.dylib                    0x00007fff8556b00f _xpc_connection_mach_event + 2198
15  libdispatch.dylib               0x00007fff8e6aa4ca _dispatch_client_callout4 + 9
16  libdispatch.dylib               0x00007fff8e6aa93c _dispatch_mach_msg_invoke + 555
17  libdispatch.dylib               0x00007fff8e6a7134 _dispatch_queue_drain + 1207
18  libdispatch.dylib               0x00007fff8e6a9293 _dispatch_mach_invoke + 735
19  libdispatch.dylib               0x00007fff8e6a7134 _dispatch_queue_drain + 1207
20  libdispatch.dylib               0x00007fff8e6ad63b _dispatch_queue_invoke + 549
21  libdispatch.dylib               0x00007fff8e6a5c87 _dispatch_root_queue_drain + 538
22  libdispatch.dylib               0x00007fff8e6a5a34 _dispatch_worker_thread3 + 91
23  libsystem_pthread.dylib         0x00007fff8e0ef68f _pthread_wqthread + 1129
24  libsystem_pthread.dylib         0x00007fff8e0ed365 start_wqthread + 13

Thread 5:: Dispatch queue: com.apple.libdispatch-manager
0   libsystem_kernel.dylib          0x00007fff99c1bff6 kevent_qos + 10
1   libdispatch.dylib               0x00007fff8e6a8099 _dispatch_mgr_invoke + 216
2   libdispatch.dylib               0x00007fff8e6a7d01 _dispatch_mgr_thread + 52

Thread 4 crashed with X86 Thread State (64-bit):
  rax: 0x00007fdc7b0034c0  rbx: 0x0000000000000000  rcx: 0x0000000000000001  rdx: 0x0000700000208ef0
  rdi: 0x0000000000000000  rsi: 0x0000700000208d00  rbp: 0x0000700000208cf0  rsp: 0x0000700000208940
   r8: 0x0000000000000005   r9: 0x0000000000000000  r10: 0x0000000000000021  r11: 0x0000000000000001
  r12: 0x00007fdc7970efa0  r13: 0xc200f4013195cd72  r14: 0x0000000300000004  r15: 0x0000000000000000
  rip: 0x00007fff9548aa00  rfl: 0x0000000000010297  cr2: 0x000000030000002c

Logical CPU:     6
Error Code:      0x00000004
Trap Number:     14


Binary Images:
       0x10b95e000 -        0x10b95ffff  CVMCompiler (119.5) <04564176-A1EE-3AEC-87B6-436D46FFBABB> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/CVMCompiler
       0x10bb9d000 -        0x10bbadff7  libCLVMIGILPlugin.dylib (10.12.13) <44154052-25E6-3441-99AB-6374D469A67B> /System/Library/Frameworks/OpenCL.framework/Libraries/libCLVMIGILPlugin.dylib
       0x10d400000 -        0x10da48fff  libcl2module.dylib (2.4.1) <93EE4EF0-D6B7-305F-B2C4-E062AE48DC69> /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libcl2module.dylib
       0x10dae2000 -        0x10db6ffff  IGIL.dylib (10.12.13) <A5963466-C774-32C9-820B-18E4E92992BE> /System/Library/Frameworks/OpenCL.framework/Libraries/IGIL.dylib
       0x10dbd2000 -        0x10e06ffff  iCBE.dylib (10.12.13) <4C06E484-FB00-3381-B9A6-642236E21A33> /System/Library/Extensions/AppleIntelHD5000GraphicsGLDriver.bundle/Contents/MacOS/iCBE.dylib
    0x7fff6b3e6000 -     0x7fff6b41cfa7  dyld (360.18) <1A7F8274-FC32-3B86-9979-66B8F2B7B5E2> /usr/lib/dyld
    0x7fff8465f000 -     0x7fff8467bff7  libsystem_malloc.dylib (67) <9EECAB18-F025-34C4-8E32-7EFFA6720EFC> /usr/lib/system/libsystem_malloc.dylib
    0x7fff85564000 -     0x7fff8558dfff  libxpc.dylib (756.20.4) <61AB4610-9304-354C-9E9B-D57198AE9866> /usr/lib/system/libxpc.dylib
    0x7fff85ff2000 -     0x7fff85ffafff  libMatch.1.dylib (27) <3AC0BFB8-7E69-3DBE-A175-7F3946FC4554> /usr/lib/libMatch.1.dylib
    0x7fff86391000 -     0x7fff863bafff  libsystem_info.dylib (477.20.1) <6513635B-4ADE-3B45-BF63-ED7AC565B0C9> /usr/lib/system/libsystem_info.dylib
    0x7fff8690e000 -     0x7fff86913ff3  libunwind.dylib (35.3) <124E0F05-2350-3774-A32C-7F5BF38EDE73> /usr/lib/system/libunwind.dylib
    0x7fff86c90000 -     0x7fff86c90ff7  liblaunch.dylib (756.20.4) <EDF719D6-D2BB-38DD-8C94-4272BEFDA2CD> /usr/lib/system/liblaunch.dylib
    0x7fff86d88000 -     0x7fff86d88ff7  libkeymgr.dylib (28) <09397E01-6066-3179-A50C-2CE666FDA929> /usr/lib/system/libkeymgr.dylib
    0x7fff86da0000 -     0x7fff86dc9fff  libc++abi.dylib (125) <DCCC8177-3D09-35BC-9784-2A04FEC4C71B> /usr/lib/libc++abi.dylib
    0x7fff870b8000 -     0x7fff870b8ff7  libunc.dylib (29) <1D0F8265-F026-3CBD-93D3-F8DF14FFCE68> /usr/lib/system/libunc.dylib
    0x7fff870b9000 -     0x7fff870bbff7  libquarantine.dylib (80) <163CF63A-7455-3D1F-AE57-8C4475A9204C> /usr/lib/system/libquarantine.dylib
    0x7fff8720e000 -     0x7fff8720ffff  libsystem_blocks.dylib (65) <49D42329-7DE9-3413-92C3-A473A7E9CF35> /usr/lib/system/libsystem_blocks.dylib
    0x7fff87213000 -     0x7fff87689fff  com.apple.CoreFoundation (6.9 - 1256.14) <068D1BA9-3859-34C7-986A-97EDF739C5C8> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    0x7fff87800000 -     0x7fff87817fff  libsystem_asl.dylib (322) <3C2D3ACD-0DD1-337A-8247-44A910D67A65> /usr/lib/system/libsystem_asl.dylib
    0x7fff8830d000 -     0x7fff88360ff7  libc++.1.dylib (120.1) <8FC3D139-8055-3498-9AC5-6467CB7F4D14> /usr/lib/libc++.1.dylib
    0x7fff8903d000 -     0x7fff8909eff7  libsystem_network.dylib (583.20.10) <1C0410F3-F66E-3B0D-B8AD-0D49AB15A529> /usr/lib/system/libsystem_network.dylib
    0x7fff8920d000 -     0x7fff8941affb  libicucore.A.dylib (551.41) <CFFD7342-A7D6-323A-AC14-B9EECF6EFFED> /usr/lib/libicucore.A.dylib
    0x7fff8a672000 -     0x7fff8a6a1ffb  libsystem_m.dylib (3105) <26655445-CA97-321E-B221-801CB378D1AA> /usr/lib/system/libsystem_m.dylib
    0x7fff8a6b9000 -     0x7fff8a6c2ff3  libsystem_notify.dylib (150.20.3) <243FADE1-255A-3B78-8033-F336CD64B817> /usr/lib/system/libsystem_notify.dylib
    0x7fff8a6c3000 -     0x7fff8a6d9ff7  libsystem_coretls.dylib (83.20.8) <30AF7134-6CA7-3582-B9D3-507D6ED19A88> /usr/lib/system/libsystem_coretls.dylib
    0x7fff8ae85000 -     0x7fff8ae86fff  libDiagnosticMessagesClient.dylib (100) <4243B6B4-21E9-355B-9C5A-95A216233B96> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff8c3f5000 -     0x7fff8c406ff7  libsystem_trace.dylib (201.10.3) <F0B7622B-FB6B-31E1-8703-38F57BE84553> /usr/lib/system/libsystem_trace.dylib
    0x7fff8cb94000 -     0x7fff8cef6f3f  libobjc.A.dylib (680) <9F45830D-F1D5-3CDF-9461-1A5477ED7D1E> /usr/lib/libobjc.A.dylib
    0x7fff8cf77000 -     0x7fff8d004fff  libsystem_c.dylib (1082.20.4) <EAB38A6C-8671-3B13-B500-90EC1B912063> /usr/lib/system/libsystem_c.dylib
    0x7fff8d411000 -     0x7fff8d535fff  libsqlite3.dylib (216.4) <280D67B8-F93D-3587-A146-19F36C817548> /usr/lib/libsqlite3.dylib
    0x7fff8d69c000 -     0x7fff8d6acfff  libbsm.0.dylib (34) <7E14504C-A8B0-3574-B6EB-5D5FABC72926> /usr/lib/libbsm.0.dylib
    0x7fff8df3c000 -     0x7fff8df3dffb  libSystem.B.dylib (1226.10.1) <54388DF0-3813-33E4-BE8D-7743A81ACF4D> /usr/lib/libSystem.B.dylib
    0x7fff8e082000 -     0x7fff8e08afff  libsystem_networkextension.dylib (385.20.6) <DC8A102A-BF02-31A4-8914-65C34DF6B592> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff8e0ec000 -     0x7fff8e0f5ff7  libsystem_pthread.dylib (138.10.4) <327CECD0-B881-3153-8FCC-4FD4818B7F16> /usr/lib/system/libsystem_pthread.dylib
    0x7fff8e691000 -     0x7fff8e694ffb  libdyld.dylib (360.18) <5F3777A7-F07E-3D5F-BFA3-A920FF4170ED> /usr/lib/system/libdyld.dylib
    0x7fff8e697000 -     0x7fff8e69bfff  libcache.dylib (75) <6B245C0A-F3EA-383B-A542-5B0D0456A41B> /usr/lib/system/libcache.dylib
    0x7fff8e69c000 -     0x7fff8e69fff7  libsystem_sandbox.dylib (460.20.9) <1C891336-1B25-365D-B43E-96D5B3BE66B0> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8e6a0000 -     0x7fff8e6cdfff  libdispatch.dylib (501.20.1) <324C9189-2AF3-3356-847F-6F4CE1C6E901> /usr/lib/system/libdispatch.dylib
    0x7fff9043f000 -     0x7fff90447ffb  libsystem_dnssd.dylib (625.20.4) <945B5FB1-DA91-3D45-A961-A8FAD53C1E7E> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff90592000 -     0x7fff905c2ff7  libsandbox.1.dylib (460.20.9) <F0002EB6-27DF-38D5-AA6F-DE2A27C9C0A3> /usr/lib/libsandbox.1.dylib
    0x7fff90e83000 -     0x7fff90e88ff7  libmacho.dylib (875.1) <CB745E1F-4885-3F96-B38B-2093DF488FD5> /usr/lib/system/libmacho.dylib
    0x7fff9219f000 -     0x7fff921a0ffb  libremovefile.dylib (41) <B8D1A5FC-CFD5-3AAB-8A10-14DDC129710A> /usr/lib/system/libremovefile.dylib
    0x7fff93081000 -     0x7fff93083fff  libsystem_coreservices.dylib (19.2) <1B3F5AFC-FFCD-3ECB-8B9A-5538366FB20D> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff935d4000 -     0x7fff935dcfff  libcopyfile.dylib (127) <F5133269-0B22-388C-A57C-079667B6291E> /usr/lib/system/libcopyfile.dylib
    0x7fff935dd000 -     0x7fff935dfff7  libsystem_configuration.dylib (802.20.7) <5FD79070-36CC-3D02-BEA7-BB5D2AE97D5D> /usr/lib/system/libsystem_configuration.dylib
    0x7fff9384d000 -     0x7fff9384efff  libsystem_secinit.dylib (20) <FD6ECF2C-1489-32CA-981B-9045B5EB1FAA> /usr/lib/system/libsystem_secinit.dylib
    0x7fff949fb000 -     0x7fff94a02ff7  libcompiler_rt.dylib (62) <D3C4AB40-23B4-3BC6-8C38-5B8758D14E80> /usr/lib/system/libcompiler_rt.dylib
    0x7fff95082000 -     0x7fff95093ff7  libz.1.dylib (61.20.1) <B3EBB42F-48E3-3287-9F0D-308E04D407AC> /usr/lib/libz.1.dylib
    0x7fff9520c000 -     0x7fff95b40f17  libLLVMContainer.dylib (119.5) <DBA0BD9E-5F32-3506-B47C-207B954CF43B> /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libLLVMContainer.dylib
    0x7fff96874000 -     0x7fff968ebfe7  libcorecrypto.dylib (335.20.1) <C6BD205F-4ECE-37EE-BCAB-A76F39CDCFFA> /usr/lib/system/libcorecrypto.dylib
    0x7fff98597000 -     0x7fff9859ffe7  libsystem_platform.dylib (74.10.3) <D3A27E10-7F08-3603-ACC8-7A92B2C04BAB> /usr/lib/system/libsystem_platform.dylib
    0x7fff987b2000 -     0x7fff987f8ff7  libauto.dylib (186) <999E610F-41FC-32A3-ADCA-5EC049B65DFB> /usr/lib/libauto.dylib
    0x7fff99b53000 -     0x7fff99b5eff7  libcommonCrypto.dylib (60075.20.1) <766BC3F5-41F3-3315-BABC-72718A98EA92> /usr/lib/system/libcommonCrypto.dylib
    0x7fff99c04000 -     0x7fff99c22fff  libsystem_kernel.dylib (3248.20.55) <0E688457-4915-36DD-8798-5C2EDEE3F1A3> /usr/lib/system/libsystem_kernel.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 62743221
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=129.9M resident=0K(0%) swapped_out_or_unallocated=129.9M(100%)
Writable regions: Total=100.2M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=100.2M(100%)

                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                  2048K        2 
Dispatch continuations            16.0M        2 
Kernel Alloc Once                    4K        2 
MALLOC                            61.9M       17 
MALLOC guard page                   16K        4 
Process Corpse Info               2048K        2 
STACK GUARD                       56.0M        7 
Stack                             10.1M        7 
VM_ALLOCATE                         32K        4 
__DATA                            4184K       56 
__LINKEDIT                        93.7M        8 
__TEXT                            36.2M       55 
__UNICODE                          552K        2 
shared memory                     8204K        5 
===========                     =======  ======= 
TOTAL                            290.6M      159 

And no, this doesn't happen when compiling other OpenCL code.