RE: [AMBER-Developers] double4 in cuda?

From: Ross Walker <ross.rosswalker.co.uk>
Date: Tue, 23 Feb 2010 11:58:54 -0800

Hi Dave,

Double4 is supported in the 'final' release of the cuda tools 3.0 which is not currently publically available. For the moment try the following 'hack'.

Add in gputypes.h:

struct __builtin_align__(16) double4
{
  double x, y, z, w;
};
typedef struct double4 double4;

All the best
Ross

> -----Original Message-----
> From: amber-developers-bounces.ambermd.org [mailto:amber-developers-
> bounces.ambermd.org] On Behalf Of case
> Sent: Tuesday, February 23, 2010 11:38 AM
> To: amber-developers.ambermd.org
> Subject: [AMBER-Developers] double4 in cuda?
>
> Hi: with the recent single/double upgrades to the cuda codes, I'm
> getting
> these errors:
>
> gcc -I/usr/local/cuda/include -c gpu.cpp
> gputypes.h:49: error: ‘double4’ does not name a type
>
> (Similar if I uncomment the defines for DP_PME or SP_PME).
>
> I don't see any "double4" in any of the files in
> /usr/local/cuda/include.
> Ideas? Do I need some more recent version of the NVIDIA software?
> [Right now I see "#define CUDA_VERSION 3000 /* 3.0 */" in cuda.h.
>
> ...thanks...dac
>
>
> _______________________________________________
> AMBER-Developers mailing list
> AMBER-Developers.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber-developers


_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Tue Feb 23 2010 - 12:00:06 PST
Custom Search