PTX ISA 2.2 and constant memory initialization

Hello,

I’m using CUDA toolkit 3.2 on a Linux Ubuntu 10.04, and I have a GTX285 board and driver 260.24 (devdriver_3.2_linux_64_260.24.run)

I am getting a strange error message from ptxas :
my CUDA code declare a constant memory variable like this :
constant GlobalConstants gParams;
Note that GlobalConstants is a struct which contains various float and int parameters.

I also declare some c++ references to gParams fields like this:
constant float gamma& = gParams.gamma;

but ptxas complains like this:
ptxas HydroRunBase.ptx, line 4254; error : Feature ‘addresses as initial values’ requires PTX ISA .version 2.1 or later
at line 4253-4254, I have the following ptx code:

.const .align 4 .b8 gParams[72];
.const .u64 gamma0 = gParams;

So the line with gamma0 initialization is faulty; I don’t understand why I get this error since I’m using toolkit 3.2 (PTX ISA 2.2) !?
I can avoid using references to gParams internal fields, but I’d rather not.

Can someone tell me about what I am missing here ??
Thanks.

Pierre.

Hello,

I’m using CUDA toolkit 3.2 on a Linux Ubuntu 10.04, and I have a GTX285 board and driver 260.24 (devdriver_3.2_linux_64_260.24.run)

I am getting a strange error message from ptxas :
my CUDA code declare a constant memory variable like this :
constant GlobalConstants gParams;
Note that GlobalConstants is a struct which contains various float and int parameters.

I also declare some c++ references to gParams fields like this:
constant float gamma& = gParams.gamma;

but ptxas complains like this:
ptxas HydroRunBase.ptx, line 4254; error : Feature ‘addresses as initial values’ requires PTX ISA .version 2.1 or later
at line 4253-4254, I have the following ptx code:

.const .align 4 .b8 gParams[72];
.const .u64 gamma0 = gParams;

So the line with gamma0 initialization is faulty; I don’t understand why I get this error since I’m using toolkit 3.2 (PTX ISA 2.2) !?
I can avoid using references to gParams internal fields, but I’d rather not.

Can someone tell me about what I am missing here ??
Thanks.

Pierre.