File tree Expand file tree Collapse file tree 4 files changed +71
-8
lines changed Expand file tree Collapse file tree 4 files changed +71
-8
lines changed Original file line number Diff line number Diff line change 11# CV-CUDA  
22
3+ CV-CUDA(0.5.0) for Pascal(sm6.1) and lower version gcc
4+ 
5+ ## build  
6+   
7+ ``` shell   
8+ git clone 
[email protected] :torchpipe/CV-CUDA.git
9+ git submodule update --init
10+ 
11+ img_name=nvcr.io/nvidia/cuda:11.6.2-cudnn8-devel-ubuntu20.04
12+ 
13+ docker run  --name=cvcuda_fork   --network=host --gpus=all  --ulimit memlock=-1 --ulimit stack=67108864  --privileged=true  -v ` pwd`  :/workspace  -w/workspace  -it $img_name   /bin/bash 
14+ ``` 
15+ 
16+   and then
17+ 
18+ ``` 
19+ source build_env.sh 
20+ ./ci/build.sh 
21+ 
22+ ls -alh build-rel/lib/ 
23+ 
24+ ``` 
25+ 
26+ (optinal) pack
27+ ``` 
28+ cd build-rel 
29+ cpack . -G TXZ 
30+ 
31+ ls -alh nvcv-* 
32+      
33+ ``` 
34+ 
35+ 
36+ ## direct download  
37+ 
38+ see https://github.com/torchpipe/CV-CUDA/releases 
39+ 
40+ 
41+ 
42+ 
43+ 
44+ 
45+ 
46+ 
47+ 
48+ 
49+ 
50+ 
51+ 
52+ 
53+ original readme
54+ -------------------------------------------------------------------------- 
355[ ![ License] ( https://img.shields.io/badge/License-Apache_2.0-yellogreen.svg )] ( https://opensource.org/licenses/Apache-2.0 ) 
456
557![ Version] ( https://img.shields.io/badge/Version-v0.5.0--beta-blue ) 
Original file line number Diff line number Diff line change 1+ apt-get update -y
2+   apt-get install -y  ninja-build  libssl-dev wget
3+  
4+ wget https://cmake.org/files/v3.20/cmake-3.20.1-linux-x86_64.tar.gz -O /tmp/cmake-3.20.1-linux-x86_64.tar.gz
5+  cd  /tmp
6+  tar zxvf cmake-3.20.1-linux-x86_64.tar.gz
7+ mv cmake-3.20.1-linux-x86_64 /opt/cmake-3.20.1
8+ ln -sf /opt/cmake-3.20.1/bin/*   /usr/bin/
9+ cd  -
Original file line number Diff line number Diff line change @@ -67,7 +67,8 @@ mkdir -p "$build_dir"
6767#  Set build configuration depending on build type ====================
6868
6969#  Common config
70- cmake_args=" -DBUILD_TESTS=1" 
70+ cmake_args=" -DBUILD_TESTS=0" 
71+ ENABLE_PYTHON=0
7172
7273if  [[ " $ENABLE_PYTHON "   =  ' 0'   ||  " $ENABLE_PYTHON "   =  ' no'   ]];  then 
7374    cmake_args=" $cmake_args  -DBUILD_PYTHON=0" 
9495
9596#  Configure build toolchain ===========================================
9697
97- #  Make sure we use most recent gcc-11 .x
98- CC=${CC:= $(find / usr/ bin/ gcc-11 *  | sort -rV | head -n 1)} 
99- CXX=${CXX:= $(find / usr/ bin/ g++-11 *  | sort -rV | head -n 1)} 
98+ #  Make sure we use most recent gcc-9 .x
99+ CC=${CC:= $(find / usr/ bin/ gcc-9 *  | sort -rV | head -n 1)} 
100+ CXX=${CXX:= $(find / usr/ bin/ g++-9 *  | sort -rV | head -n 1)} 
100101
101102cmake_args=" ${cmake_args}  -DCMAKE_C_COMPILER=$CC  -DCMAKE_CXX_COMPILER=$CXX " 
102103
130131
131132#  Create build tree
132133cmake -B " $build_dir "   " $source_dir "    \
133-     -DBUILD_TESTS=1  \
134+     -DBUILD_TESTS=0  \
134135    $cmake_args  \
135136    $user_args 
136137
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ list(GET CUDA_VERSION_LIST 2 CUDA_VERSION_PATCH)
2121find_package (CUDAToolkit ${CUDA_VERSION_MAJOR} .${CUDA_VERSION_MINOR}  REQUIRED)
2222
2323# CUDA version requirement: 
24- # - to use gcc-11 (11.7 ) 
24+ # - to use gcc-11 (11.6 ) 
2525
26- if (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS  "11.7 " )
27-     message (FATAL_ERROR "Minimum CUDA version supported is 11.7 " )
26+ if (CMAKE_CUDA_COMPILER_VERSION VERSION_LESS  "11.6 " )
27+     message (FATAL_ERROR "Minimum CUDA version supported is 11.6 " )
2828endif ()
2929
3030set (CMAKE_CUDA_STANDARD ${CMAKE_CXX_STANDARD} )
@@ -43,6 +43,7 @@ if(NOT USE_CMAKE_CUDA_ARCHITECTURES)
4343    else ()
4444        # All architectures we build sass for 
4545        list (APPEND  CMAKE_CUDA_ARCHITECTURES
46+             61-real # Pascal - gp10x/GeForce 
4647             70-real # Volta  - gv100/Tesla 
4748             75-real # Turing - tu10x/GeForce 
4849             80-real # Ampere - ga100/Tesla 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments