Re: [racket] OpenCL module macro errors

2013-08-26 Thread Dane Larsen
Ah! That makes a lot of sense (oops). Thanks for the help! Dane On 08/26/2013 02:34 AM, Tobias Hammer wrote: I guess you should replace it in the function body too diff --git a/opencl/c/syntax.rkt b/opencl/c/syntax.rkt index 909b2c8..3848e1b 100644 --- a/opencl/c/syntax.rkt +++ b/opencl/c/synt

Re: [racket] OpenCL module macro errors

2013-08-26 Thread Jay McCarthy
Yup On Mon, Aug 26, 2013 at 2:34 AM, Tobias Hammer wrote: > I guess you should replace it in the function body too > > diff --git a/opencl/c/syntax.rkt b/opencl/c/syntax.rkt > index 909b2c8..3848e1b 100644 > --- a/opencl/c/syntax.rkt > +++ b/opencl/c/syntax.rkt > @@ -216,13 +216,13 @@ >

Re: [racket] OpenCL module macro errors

2013-08-26 Thread Tobias Hammer
I guess you should replace it in the function body too diff --git a/opencl/c/syntax.rkt b/opencl/c/syntax.rkt index 909b2c8..3848e1b 100644 --- a/opencl/c/syntax.rkt +++ b/opencl/c/syntax.rkt @@ -216,13 +216,13 @@ (define (id:selector arg_id ... _param_type) (case (hash-

Re: [racket] OpenCL module macro errors

2013-08-24 Thread Dane Larsen
Hmm. I think I almost have it, but there's one error I can't seem to track down. Switching from _arg_type to arg_id seems to have almost worked, but now I'm stuck. When I try to run my context sharing test program (https://github.com/larsendt/cl-gl-context-sharing/) I get the following: vect

Re: [racket] OpenCL module macro errors

2013-08-23 Thread Dane Larsen
Great! I'll give that a shot tonight. I'm hoping I can have the context sharing done sometime in the next couple days. I'll plan on sending you a pull request via Github. Thanks for the help, Dane On 8/23/13 9:29 AM, Jay McCarthy wrote: Hi Dane, Thanks for working on this. If you look at li

Re: [racket] OpenCL module macro errors

2013-08-23 Thread Jay McCarthy
Hi Dane, Thanks for working on this. If you look at line 106 of the definition of define-opencl-info, it uses the _arg_type as the name of the selector's arguments. I think you could safely replace that with arg_id, if not, then you would want to create new ids with generate-temporaries, but try

[racket] OpenCL module macro errors

2013-08-22 Thread Dane Larsen
Hi all, I'm a little new to Racket (and Lispy languages in general). I'm working on extending the OpenCL module to add support for OpenGL context sharing. My questions are somewhat specific to the OpenCL module, but hopefully I can provide enough context to minimize that. Right now I'm work