Hi Efren, I attached 2 example programs, one python/pyCuda and one C/Cuda program. They contain the same C-code. Michiel.
>>> "Serra, Mr. Efren, Contractor, Code 7542" <efren.serra....@nrlmry.navy.mil> >>> 4/10/2012 6:09 PM >>> Michiel, In your SourceModule code, whose erf/exp function is being called, i.e., Python or C?! Thanks. Efren A. Serra (Contractor) DeVine Consulting, Inc. Naval Research Laboratory Marine Meteorology Division 7 Grace Hopper Ave., STOP 2 Monterey, CA 93943 Code 7542 Office: 831-656-4650 From: pycuda-boun...@tiker.net [mailto:pycuda-boun...@tiker.net] On Behalf Of Michiel Bruinink Sent: Tuesday, April 10, 2012 5:37 AM To: pycuda@tiker.net Subject: [PyCUDA] erf and exp much slower with pyCuda Hello, When you use the erf function with pyCuda, execution takes almost 2x longer than with nvcc. The exp function takes about 30% longer. I use these functions in my pyCuda program a lot and in that case it makes the program 3x slower than when using nvcc. I attached two small example programs that can be run straight away. Regards, Michiel.
_______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda