Skip to content

Instantly share code, notes, and snippets.

View mickeyouyou's full-sized avatar
🌏
searching and reading

Zongbao Feng mickeyouyou

🌏
searching and reading
View GitHub Profile
@mickeyouyou
mickeyouyou / donothing.rs
Created April 20, 2021 02:04
“用力过猛”的现代操作系统
// craete rs do nothing
fn main() {
// do nothing
}
#include<cuda.h>
#define THREAD_NUM 256
#define BLOCK_NUM 32
#define R_SIZE THREAD_NUM * BLOCK_NUM
#define M_SIZE R_SIZE * R_SIZE
__global__ void mat_mul(int* mat1, int* mat2, int* result){
/*----------------------------------------------------------------------------
ADOL-C -- Automatic Differentiation by Overloading in C++
File: tapeless_scalar.cpp
Revision: $Id$
Contents: computation of coordinate transform,
scalar tapeless forward mode
described in the manual
Copyright (c) Andrea Walther, Andreas Kowarz
@mickeyouyou
mickeyouyou / nvcc.bash
Created January 13, 2020 06:56
traceless_cude.cu build
nvcc -arch=sm_60 -std=c++11 -I/usr/local/adolc/include -o traceless_cuda modules/planning/open_space/trajectory_smoother/traceless_cuda.cu
@mickeyouyou
mickeyouyou / test.cu
Created January 3, 2020 07:24
unfied memroy cuda operation codes
#include <stdio.h>
inline cudaError_t checkCuda(cudaError_t result) {
if (result != cudaSuccess) {
printf("CUDA Runtime Error: %s:%d, ", __FILE__, __LINE__);
printf("Code: %d, message: %s\n", result, cudaGetErrorString(result));
}
return result;
}
@mickeyouyou
mickeyouyou / member.cu
Created December 25, 2019 02:33
cuda kernel member function
#include <stdio.h>
class A{
int data;
public:
A() { data = 0;}
__host__ __device__
void increment() { data++;}
__host__ __device__
diff --git a/setup.py b/setup.py
index d26ca8b..027524a 100644
--- a/setup.py
+++ b/setup.py
@@ -206,7 +206,7 @@ if platform.system() == "Windows":
if info.major == 3 and info.minor >= 5:
# PCL 1.8.1
boost_version = '1_64'
- vtk_version = '8.0'
+ vtk_version = '6.3'
@mickeyouyou
mickeyouyou / pcl1.9.9_vtk6.3.diff
Created November 27, 2019 11:08
pcl1.9.9_vtk6.3.diff
diff --git a/setup.py b/setup.py
index d26ca8b..dff54ae 100644
--- a/setup.py
+++ b/setup.py
@@ -253,7 +253,7 @@ if platform.system() == "Windows":
if info.major == 3 and info.minor >= 5:
# PCL 1.9.1
boost_version = '1_68'
- vtk_version = '8.1'
+ vtk_version = '6.3'
diff --git a/setup.py b/setup.py
index d26ca8b..027524a 100644
--- a/setup.py
+++ b/setup.py
@@ -206,7 +206,7 @@ if platform.system() == "Windows":
if info.major == 3 and info.minor >= 5:
# PCL 1.8.1
boost_version = '1_64'
- vtk_version = '8.0'
+ vtk_version = '6.3'
diff --git a/setup.py b/setup.py
index d26ca8b..027524a 100644
--- a/setup.py
+++ b/setup.py
@@ -206,7 +206,7 @@ if platform.system() == "Windows":
if info.major == 3 and info.minor >= 5:
# PCL 1.8.1
boost_version = '1_64'
- vtk_version = '8.0'
+ vtk_version = '6.3'