python parallel utilities-开源

  • y9_984831
    了解作者
  • 99.2KB
    文件大小
  • gz
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-15 06:02
    上传日期
nVidia CUDA和MPI python包装器。 这些包装器均以纯C语言编写,没有必要加倍加价。 CUDA包装器公开了CUDA运行时和驱动程序API。
pythonparallelu-1.0.tar.gz
  • pythonparallelu-1.0
  • .pydevproject
    288B
  • SConstruct
    2.1KB
  • _cudatool.py
    2.3KB
  • include
  • pycudart.h
    3.4KB
  • SConfig
    132B
  • src
  • cuda
  • py_cuda_context.c
    3.7KB
  • py_driver_api.c
    6.5KB
  • pycudart.c
    34.2KB
  • old
  • cuda.py
    11.5KB
  • py_cuda_memory.c
    11.7KB
  • mymod.c
    313.1KB
  • py_cuda_runtime.h
    4.4KB
  • SConstruct
    566B
  • mymod.cu
    561B
  • testit.py
    674B
  • py_cuda_runtime.c
    7.4KB
  • py_cuda_module.c
    3.1KB
  • testrt.py
    418B
  • py_cuda_stream.c
    2.7KB
  • py_cuda_function.c
    5.1KB
  • cudatool.py
    2.9KB
  • .sconsign.dblite
    61.2KB
  • mpi
  • pdbmpi.py
    41.3KB
  • mpi_wrap.c
    21KB
  • README
    78B
  • .project
    369B
内容介绍
# 1 "/tmp/tmpxft_000124d6_00000000-1_mymod.cudafe1.cpp" # 1 "<built-in>" # 1 "<command line>" # 1 "/tmp/tmpxft_000124d6_00000000-1_mymod.cudafe1.cpp" # 1 "mymod.cu" # 152 "/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/stddef.h" 3 typedef int ptrdiff_t; # 214 "/usr/lib/gcc/i686-apple-darwin9/4.0.1/include/stddef.h" 3 typedef unsigned long size_t; # 1 "/usr/local/cuda/bin/../include/crt/host_runtime.h" 1 3 # 69 "/usr/local/cuda/bin/../include/crt/host_runtime.h" 3 # 1 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" 1 3 # 54 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" 3 # 1 "/usr/local/cuda/bin/../include/host_defines.h" 1 3 # 55 "/usr/local/cuda/bin/../include/cuda_runtime_api.h" 2 3 # 1 "/usr/local/cuda/bin/../include/builtin_types.h" 1 3 # 42 "/usr/local/cuda/bin/../include/builtin_types.h" 3 # 1 "/usr/local/cuda/bin/../include/device_types.h" 1 3 # 46 "/usr/local/cuda/bin/../include/device_types.h" 3 enum cudaRoundMode { cudaRoundNearest, cudaRoundZero, cudaRoundPosInf, cudaRoundMinInf }; # 43 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 1 "/usr/local/cuda/bin/../include/driver_types.h" 1 3 # 59 "/usr/local/cuda/bin/../include/driver_types.h" 3 enum cudaError { cudaSuccess = 0, cudaErrorMissingConfiguration, cudaErrorMemoryAllocation, cudaErrorInitializationError, cudaErrorLaunchFailure, cudaErrorPriorLaunchFailure, cudaErrorLaunchTimeout, cudaErrorLaunchOutOfResources, cudaErrorInvalidDeviceFunction, cudaErrorInvalidConfiguration, cudaErrorInvalidDevice, cudaErrorInvalidValue, cudaErrorInvalidPitchValue, cudaErrorInvalidSymbol, cudaErrorMapBufferObjectFailed, cudaErrorUnmapBufferObjectFailed, cudaErrorInvalidHostPointer, cudaErrorInvalidDevicePointer, cudaErrorInvalidTexture, cudaErrorInvalidTextureBinding, cudaErrorInvalidChannelDescriptor, cudaErrorInvalidMemcpyDirection, cudaErrorAddressOfConstant, cudaErrorTextureFetchFailed, cudaErrorTextureNotBound, cudaErrorSynchronizationError, cudaErrorInvalidFilterSetting, cudaErrorInvalidNormSetting, cudaErrorMixedDeviceExecution, cudaErrorCudartUnloading, cudaErrorUnknown, cudaErrorNotYetImplemented, cudaErrorMemoryValueTooLarge, cudaErrorInvalidResourceHandle, cudaErrorNotReady, cudaErrorStartupFailure = 0x7f, cudaErrorApiFailureBase = 10000 }; enum cudaChannelFormatKind { cudaChannelFormatKindSigned, cudaChannelFormatKindUnsigned, cudaChannelFormatKindFloat }; struct cudaChannelFormatDesc { int x; int y; int z; int w; enum cudaChannelFormatKind f; }; struct cudaArray; enum cudaMemcpyKind { cudaMemcpyHostToHost = 0, cudaMemcpyHostToDevice, cudaMemcpyDeviceToHost, cudaMemcpyDeviceToDevice }; struct cudaPitchedPtr { void *ptr; size_t pitch; size_t xsize; size_t ysize; }; struct cudaExtent { size_t width; size_t height; size_t depth; }; struct cudaPos { size_t x; size_t y; size_t z; }; struct cudaMemcpy3DParms { struct cudaArray *srcArray; struct cudaPos srcPos; struct cudaPitchedPtr srcPtr; struct cudaArray *dstArray; struct cudaPos dstPos; struct cudaPitchedPtr dstPtr; struct cudaExtent extent; enum cudaMemcpyKind kind; }; struct cudaDeviceProp { char name[256]; size_t totalGlobalMem; size_t sharedMemPerBlock; int regsPerBlock; int warpSize; size_t memPitch; int maxThreadsPerBlock; int maxThreadsDim[3]; int maxGridSize[3]; int clockRate; size_t totalConstMem; int major; int minor; size_t textureAlignment; int deviceOverlap; int multiProcessorCount; int __cudaReserved[40]; }; # 219 "/usr/local/cuda/bin/../include/driver_types.h" 3 typedef enum cudaError cudaError_t; typedef int cudaStream_t; typedef int cudaEvent_t; # 44 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 1 "/usr/local/cuda/bin/../include/texture_types.h" 1 3 # 46 "/usr/local/cuda/bin/../include/texture_types.h" 3 enum cudaTextureAddressMode { cudaAddressModeWrap, cudaAddressModeClamp }; enum cudaTextureFilterMode { cudaFilterModePoint, cudaFilterModeLinear }; enum cudaTextureReadMode { cudaReadModeElementType, cudaReadModeNormalizedFloat }; struct textureReference { int normalized; enum cudaTextureFilterMode filterMode; enum cudaTextureAddressMode addressMode[3]; struct cudaChannelFormatDesc channelDesc; int __cudaReserved[16]; }; # 45 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 1 "/usr/local/cuda/bin/../include/vector_types.h" 1 3 # 45 "/usr/local/cuda/bin/../include/vector_types.h" 3 # 1 "/usr/local/cuda/bin/../include/host_defines.h" 1 3 # 46 "/usr/local/cuda/bin/../include/vector_types.h" 2 3 # 54 "/usr/local/cuda/bin/../include/vector_types.h" 3 struct char1 { signed char x; }; struct uchar1 { unsigned char x; }; struct char2 { signed char x, y; }; struct uchar2 { unsigned char x, y; }; struct char3 { signed char x, y, z; }; struct uchar3 { unsigned char x, y, z; }; struct char4 { signed char x, y, z, w; }; struct uchar4 { unsigned char x, y, z, w; }; struct short1 { short x; }; struct ushort1 { unsigned short x; }; struct short2 { short x, y; }; struct ushort2 { unsigned short x, y; }; struct short3 { short x, y, z; }; struct ushort3 { unsigned short x, y, z; }; struct short4 { short x, y, z, w; }; struct ushort4 { unsigned short x, y, z, w; }; struct int1 { int x; }; struct uint1 { unsigned int x; }; struct int2 { int x, y; }; struct uint2 { unsigned int x, y; }; struct int3 { int x, y, z; }; struct uint3 { unsigned int x, y, z; }; struct int4 { int x, y, z, w; }; struct uint4 { unsigned int x, y, z, w; }; struct long1 { long int x; }; struct ulong1 { unsigned long x; }; struct long2 { long int x, y; }; struct ulong2 { unsigned long int x, y; }; struct long3 { long int x, y, z; }; struct ulong3 { unsigned long int x, y, z; }; struct long4 { long int x, y, z, w; }; struct ulong4 { unsigned long int x, y, z, w; }; struct float1 { float x; }; struct float2 { float x, y; }; struct float3 { float x, y, z; }; struct float4 { float x, y, z, w; }; struct double1 { double x; }; struct double2 { double x, y; }; # 304 "/usr/local/cuda/bin/../include/vector_types.h" 3 typedef struct char1 char1; typedef struct uchar1 uchar1; typedef struct char2 char2; typedef struct uchar2 uchar2; typedef struct char3 char3; typedef struct uchar3 uchar3; typedef struct char4 char4; typedef struct uchar4 uchar4; typedef struct short1 short1; typedef struct ushort1 ushort1; typedef struct short2 short2; typedef struct ushort2 ushort2; typedef struct short3 short3; typedef struct ushort3 ushort3; typedef struct short4 short4; typedef struct ushort4 ushort4; typedef struct int1 int1; typedef struct uint1 uint1; typedef struct int2 int2; typedef struct uint2 uint2; typedef struct int3 int3; typedef struct uint3 uint3; typedef struct int4 int4; typedef struct uint4 uint4; typedef struct long1 long1; typedef struct ulong1 ulong1; typedef struct long2 long2; typedef struct ulong2 ulong2; typedef struct long3 long3; typedef struct ulong3 ulong3; typedef struct long4 long4; typedef struct ulong4 ulong4; typedef struct float1 float1; typedef struct float2 float2; typedef struct float3 float3; typedef struct float4 float4; typedef struct double1 double1; typedef struct double2 double2; # 387 "/usr/local/cuda/bin/../include/vector_types.h" 3 typedef struct dim3 dim3; struct dim3 { unsigned int x, y, z; dim3(unsigned int x = 1, unsigned int y = 1, unsigned int z = 1) : x(x), y(y), z(z) {} dim3(uint3 v) : x(v.x), y(v.y), z(v.z) {} operator uint3(void) { uint3 t; t.x = x; t.y = y; t.z = z; return t; } }; # 45 "/usr/local/cuda/bin/../include/builtin_types.h" 2 3 # 56 "/usr/local/cuda/bin/
评论
    相关推荐
    • Extend_Python:C语言扩展Python学习记录
      Extend Python with C 实际上ctypes、Python C API或者基于API的Cython,逻辑都是: 接收Python对象->转换为C对象->调用C函数->返回值转换为Python对象->返回 的流程,较为值得关切的几点是: 指针传参问题 数组传递...
    • C语言实现python的butter函数
      C语言实现python的butter函数,自测可用。已经在商用产品中使用了。
    • C语言常用用Python重写100例
      对于常用的C语言函数,如max,sort,prime等常用函数,用Python重写,达到练习的目的,例子非常丰富完整,如果能够从头作完,绝对能成为一个Python高手
    • python重写了C语言经典100例
      很经典的C语言100道练习题,用Python重写了 很经典的C语言100道练习题,用Python重写了
    • c语言编译器(python版)
      使用python语言编写的c语言编译器,使用LL1文法进行语法分析,有完整的文法规则。利用c语言的空语句解决了左递归的问题。
    • 傅里叶变换C语言实现以及python验证.zip
      傅里叶变换C语言实现版本,可用python的matplotlib来验证正确性。里面的程序注释很充分,学习傅里叶变换是一个很有用的帮手
    • python重写了C语言经典100例
      python重写了C语言经典100例,对于学习过c语言的朋友可能知道这个C语言经典100例,这里堪称是python经典100例,学习python的朋友可以参考下。
    • python实现C语言经典100例
      源代码,采用python来重新实现C语言的100个经典例子,我就是根据这些例题开始转向Python
    • WiringPi的C语言库和Python库.zip
      WiringPi的C语言库和Python库 用于树莓派安装WiringPi库
    • C语言实现的python里面的filtfilt函数.rar
      C语言实现的python里面的filtfilt函数,C语言实现的python里面的filtfilt函数可用,针对内存和效率作了优化可用,针对内存和效率作了优化。