matrixMul.zip

  • zzs2623
    了解作者
  • Visual C++
    开发工具
  • 11KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 6
    下载次数
  • 2009-11-25 10:39
    上传日期
MatrixMulGPU 在通用计算方面的应用 特别适合矩阵运算
matrixMul.zip
  • matrixMul
  • matrixMul_vc90.sln
    2KB
  • matrixMul.h
    923B
  • matrixMul.suo
    10.5KB
  • matrixMul_vc90.vcproj
    20.1KB
  • matrixMul.vcproj
    19.9KB
  • matrixMul.sln
    2KB
  • matrixMul.cu
    5.2KB
  • matrixMul_kernel.cu
    3.4KB
  • matrixMul_gold.cpp
    1.6KB
内容介绍
/* * Copyright 1993-2009 NVIDIA Corporation. All rights reserved. * * NVIDIA Corporation and its licensors retain all intellectual property and * proprietary rights in and to this software and related documentation and * any modifications thereto. Any use, reproduction, disclosure, or distribution * of this software and related documentation without an express license * agreement from NVIDIA Corporation is strictly prohibited. * */ //////////////////////////////////////////////////////////////////////////////// // export C interface extern "C" void computeGold( float*, const float*, const float*, unsigned int, unsigned int, unsigned int); //////////////////////////////////////////////////////////////////////////////// //! Compute reference data set //! C = A * B //! @param C reference data, computed but preallocated //! @param A matrix A as provided to device //! @param B matrix B as provided to device //! @param hA height of matrix A //! @param wB width of matrix B //////////////////////////////////////////////////////////////////////////////// void computeGold(float* C, const float* A, const float* B, unsigned int hA, unsigned int wA, unsigned int wB) { for (unsigned int i = 0; i < hA; ++i) for (unsigned int j = 0; j < wB; ++j) { double sum = 0; for (unsigned int k = 0; k < wA; ++k) { double a = A[i * wA + k]; double b = B[k * wB + j]; sum += a * b; } C[i * wB + j] = (float)sum; } }
评论
    相关推荐
    • MatrixMul.zip
      an example of matrix multipication on cuda GPU
    • matrixMul.rar
      cuda矩阵分块乘法,加速比较大,改自cuda SDK
    • matrixmul.rar
      矩阵与其转置矩阵的积 矩阵与其转置矩阵的积
    • MatrixMul_OpenCl.zip
      OpenCL Matrix Multiplication
    • Matrixmul.rar
      求m*n阶实矩阵A与n*k阶实矩阵的乘积矩阵C=A*B
    • matrixMul.zip
      基于cuda的GPU编程,实现稠密矩阵的乘法,cpp文件和cuda文件。
    • MatrixMul.rar
      an example of matrix multipication on cuda GPU
    • CUDA matrixmul
      矩阵相乘的并行计算,运用CUDA C进行并行加速,对于大规模矩阵相乘有很高的加速比
    • matrixmul.zip
      Matrix multiplier using c
    • codesforimageprocessing.rar
      实现简单图像处理,包括256色转灰度图、Hough变换、Walsh变换、中值滤波、二值化变换、亮度增减、傅立叶变换、反色、取对数、取指数、图像平移、图像旋转、图像细化、图像缩放、图像镜像、均值滤波、对比度拉伸、拉普拉斯锐化(边缘检测)、方块编码、梯度锐化、灰度均衡、直方图均衡、离散余弦变换、维纳滤波处理、逆滤波处理、阈值变换、高斯平滑。