```common lisp
#|
  This file is a part of cl-oclapi project.
  Copyright (c) 2015 gos-k (mag4.elan@gmail.com)
|#

(in-package :cl-user)
(defpackage cl-oclapi
  (:use :cl
        :cffi
        :cl-reexport))
(in-package :cl-oclapi)

(reexport-from :cl-oclapi.constants)
(reexport-from :cl-oclapi.types)
(reexport-from :cl-oclapi.functions)
(reexport-from :cl-oclapi.information)

(reexport-from :cl-oclapi.helpers.safe-call)
(reexport-from :cl-oclapi.helpers.with-macro)
(reexport-from :cl-oclapi.helpers.memory)

(eval-when (:load-toplevel)
  (define-foreign-library libopencl
    (:windows (:default "OpenCL"))
    (t        (:default "libOpenCL")))

  (unless (foreign-library-loaded-p 'libopencl)
    (use-foreign-library libopencl)))
```

Add OpenCL framework on OSX.
user
```common lisp
#|
  This file is a part of cl-oclapi project.
  Copyright (c) 2015 gos-k (mag4.elan@gmail.com)
|#

(in-package :cl-user)
(defpackage cl-oclapi
  (:use :cl
        :cffi
        :cl-reexport))
(in-package :cl-oclapi)

(reexport-from :cl-oclapi.constants)
(reexport-from :cl-oclapi.types)
(reexport-from :cl-oclapi.functions)
(reexport-from :cl-oclapi.information)

(reexport-from :cl-oclapi.helpers.safe-call)
(reexport-from :cl-oclapi.helpers.with-macro)
(reexport-from :cl-oclapi.helpers.memory)

(eval-when (:load-toplevel)
  (define-foreign-library libopencl
    (:windows (:default "OpenCL"))
    (:darwin (:framework "OpenCL"))
    (t        (:default "libOpenCL")))

  (unless (foreign-library-loaded-p 'libopencl)
    (use-foreign-library libopencl)))
```
assistant