CUDA
Zzzz26~
数学硕士,自动驾驶工程师
展开
-
CUDA复现opencv双线性插值resize
resize_gpu_float.cu#include "cuda_runtime.h"#include <cuda.h>#include <time.h>#include <vector>#include <opencv2/opencv.hpp>#include "opencv2/highgui.hpp"#include <iostream>#include <math.h>#include <chrono原创 2022-02-28 23:41:44 · 3559 阅读 · 0 评论 -
CUDA for循环计算递归函数,以勒让德多项式(Legendre polynomial)为例(3)
legendre_p.cu#include "cuda_runtime.h"#include <cuda.h>#include <stdlib.h>#include <iostream>#include <sys/time.h>#include <chrono>#define M 1000000 // M个点等分[-1, 1] #define N 100 // Legendre polynomial的阶数// htt原创 2022-02-12 12:00:34 · 747 阅读 · 0 评论 -
CUDA for循环计算递归函数,以勒让德多项式(Legendre polynomial)为例(2)
#include "cuda_runtime.h"#include <cuda.h>#include <stdlib.h>#include <iostream>#include <sys/time.h>#include <chrono>#define M 1000000 // M个点等分[-1, 1] #define N 100 // Legendre polynomial的阶数// https://people.sc..原创 2022-02-10 22:40:23 · 562 阅读 · 0 评论 -
CUDA for循环计算递归函数,以勒让德多项式(Legendre polynomial)为例
#include "cuda_runtime.h"#include <cuda.h>#include <stdlib.h>#include <iostream>#include <sys/time.h>#include <chrono>// https://people.sc.fsu.edu/~jburkardt/cpp_src/legendre_polynomial/legendre_polynomial.cpp// https.原创 2022-02-09 22:38:46 · 873 阅读 · 0 评论 -
CUDA重写opencv最近邻插值,宽和高分别放大k倍
第一种方法:从global memory加载数据时coalesce#include "cuda_runtime.h"#include <cuda.h>#include <time.h>#include <vector>#include <opencv2/opencv.hpp>#include <opencv2/cudawarping.hpp>#include "opencv2/highgui.hpp"#include &l原创 2022-02-04 15:02:56 · 2698 阅读 · 0 评论