Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

constants.clj case unmatched clause #10

Closed
birdspider opened this issue May 18, 2016 · 6 comments
Closed

constants.clj case unmatched clause #10

birdspider opened this issue May 18, 2016 · 6 comments

Comments

@birdspider
Copy link

birdspider commented May 18, 2016

https://github.com/uncomplicate/clojurecl/blob/master/src/clojure/uncomplicate/clojurecl/constants.clj#l181

user=> (info (first (devices (first (platforms)))))
IllegalArgumentException No matching clause: 16466  
   uncomplicate.clojurecl.constants/dec-device-partition-property (constants.clj:181)

;; (Integer/toHexString 16466)
;; "4052"

EDIT:
(it seems only when #ifdef CL_VERSION_1_1)
defined in intel-opencl-sdk:/opt/intel/opencl-sdk/include/CL/cl_ext.h as such:

#define CL_DEVICE_PARTITION_BY_NAMES_EXT            0x4052
#define CL_DEVICE_PARTITION_BY_NAMES_INTEL          0x4052
@blueberry
Copy link
Member

Found the cause: it seems that Intel is not following the standard properly. The good news is that I know how to solve this anyway, so the bugfix will follow quickly.

@blueberry
Copy link
Member

Does it work properly now (I didn't see your EDIT, so I found another, Intel-independent solution)?

@birdspider
Copy link
Author

yes I does work now, I get a uncomplicate.clojurecl.info.DeviceInfo Instance with stuff in it

@blueberry
Copy link
Member

Great! I hope you'll enjoy GPU programming in Clojure then!

@birdspider
Copy link
Author

A few (lein) tests fail and I get a sigsev on the jvm, but I guess thats something for another time :)

@blueberry
Copy link
Member

blueberry commented May 18, 2016

Now, to run clojurecl's tests and build it from the source, you'd have to use midje, and have an OpenCL 2.0 platform. Please use the release from Clojars.

Of course, if some of your tests fail, please create an issue and we could try to solve that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants