├── .github └── workflows │ ├── blank.yml │ └── main.yml ├── README.md ├── cpu_avx └── cpu_avx.rar ├── cpu_avx2 ├── 1.txt └── cpu_avx2.rar ├── gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1 ├── gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1.part01.rar └── gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1.part02.rar ├── gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1 ├── gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1.part01.rar └── gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1.part02.rar └── windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5 ├── windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part01.rar ├── windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part02.rar ├── windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part03.rar └── windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part04.rar /.github/workflows/blank.yml: -------------------------------------------------------------------------------- 1 | #================================================= 2 | # https://github.com/P3TERX/Actions-OpenWrt 3 | # Description: Build OpenWrt using GitHub Actions 4 | # Lisence: MIT 5 | # Author: P3TERX 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | 9 | name: Build OpenWrt 10 | 11 | on: 12 | repository_dispatch: 13 | release: 14 | types: published 15 | push: 16 | branches: 17 | - master 18 | paths: 19 | - '.config' 20 | # schedule: 21 | # - cron: 0 8 * * 5 22 | watch: 23 | types: started 24 | 25 | env: 26 | REPO_URL: https://github.com/coolsnowwolf/lede 27 | REPO_BRANCH: master 28 | FEEDS_CONF: feeds.conf.default 29 | CONFIG_FILE: .config 30 | DIY_P1_SH: diy-part1.sh 31 | DIY_P2_SH: diy-part2.sh 32 | SSH_ACTIONS: true 33 | UPLOAD_BIN_DIR: false 34 | UPLOAD_FIRMWARE: true 35 | UPLOAD_COWTRANSFER: true 36 | UPLOAD_WETRANSFER: false 37 | TZ: Asia/Shanghai 38 | 39 | jobs: 40 | build: 41 | runs-on: ubuntu-18.04 42 | if: github.event.repository.owner.id == github.event.sender.id 43 | 44 | steps: 45 | - name: Checkout 46 | uses: actions/checkout@master 47 | 48 | - name: Initialization environment 49 | env: 50 | DEBIAN_FRONTEND: noninteractive 51 | run: | 52 | sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc 53 | sudo -E apt-get -qq update 54 | sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-1804) 55 | sudo -E apt-get -qq autoremove --purge 56 | sudo -E apt-get -qq clean 57 | sudo timedatectl set-timezone "$TZ" 58 | sudo mkdir -p /workdir 59 | sudo chown $USER:$GROUPS /workdir 60 | - name: Clone source code 61 | working-directory: /workdir 62 | run: | 63 | df -hT $PWD 64 | git clone --depth 1 $REPO_URL -b $REPO_BRANCH openwrt 65 | ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt 66 | - name: Load custom feeds 67 | run: | 68 | [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default 69 | chmod +x $DIY_P1_SH 70 | cd openwrt 71 | $GITHUB_WORKSPACE/$DIY_P1_SH 72 | - name: Update feeds 73 | run: cd openwrt && ./scripts/feeds update -a 74 | 75 | - name: Install feeds 76 | run: cd openwrt && ./scripts/feeds install -a 77 | 78 | - name: Load custom configuration 79 | run: | 80 | [ -e files ] && mv files openwrt/files 81 | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config 82 | chmod +x $DIY_P2_SH 83 | cd openwrt 84 | $GITHUB_WORKSPACE/$DIY_P2_SH 85 | - name: SSH connection to Actions 86 | uses: P3TERX/debugger-action@master 87 | if: env.SSH_ACTIONS == 'true' || contains(github.event.action, 'ssh') 88 | 89 | - name: Download package 90 | id: package 91 | run: | 92 | cd openwrt 93 | make defconfig 94 | make download -j8 95 | find dl -size -1024c -exec ls -l {} \; 96 | find dl -size -1024c -exec rm -f {} \; 97 | - name: Compile the firmware 98 | id: compile 99 | run: | 100 | cd openwrt 101 | echo -e "$(nproc) thread compile" 102 | make -j$(nproc) || make -j1 || make -j1 V=s 103 | echo "::set-output name=status::success" 104 | grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME 105 | [ -s DEVICE_NAME ] && echo "::set-env name=DEVICE_NAME::_$(cat DEVICE_NAME)" 106 | echo "::set-env name=FILE_DATE::_$(date +"%Y%m%d%H%M")" 107 | - name: Check space usage 108 | if: (!cancelled()) 109 | run: df -hT 110 | 111 | - name: Upload bin directory 112 | uses: actions/upload-artifact@master 113 | if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true' 114 | with: 115 | name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 116 | path: openwrt/bin 117 | 118 | - name: Organize files 119 | id: organize 120 | if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() 121 | run: | 122 | cd openwrt/bin/targets/*/* 123 | rm -rf packages 124 | echo "::set-env name=FIRMWARE::$PWD" 125 | echo "::set-output name=status::success" 126 | - name: Upload firmware directory 127 | uses: actions/upload-artifact@master 128 | if: steps.organize.outputs.status == 'success' && !cancelled() 129 | with: 130 | name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 131 | path: ${{ env.FIRMWARE }} 132 | 133 | - name: Upload firmware to cowtransfer 134 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() 135 | run: | 136 | curl -fsSL git.io/file-transfer | sh 137 | ./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log 138 | echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" 139 | - name: Upload firmware to WeTransfer 140 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() 141 | run: | 142 | curl -fsSL git.io/file-transfer | sh 143 | ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log 144 | echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" 145 | -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- 1 | #================================================= 2 | # https://github.com/P3TERX/Actions-OpenWrt 3 | # Description: Build OpenWrt using GitHub Actions 4 | # Lisence: MIT 5 | # Author: P3TERX 6 | # Blog: https://p3terx.com 7 | #================================================= 8 | 9 | name: Build OpenWrt 10 | 11 | on: 12 | repository_dispatch: 13 | release: 14 | types: published 15 | push: 16 | branches: 17 | - master 18 | paths: 19 | - '.config' 20 | # schedule: 21 | # - cron: 0 8 * * 5 22 | watch: 23 | types: started 24 | 25 | env: 26 | REPO_URL: https://github.com/coolsnowwolf/lede 27 | REPO_BRANCH: master 28 | FEEDS_CONF: feeds.conf.default 29 | CONFIG_FILE: .config 30 | DIY_P1_SH: diy-part1.sh 31 | DIY_P2_SH: diy-part2.sh 32 | SSH_ACTIONS: true 33 | UPLOAD_BIN_DIR: false 34 | UPLOAD_FIRMWARE: true 35 | UPLOAD_COWTRANSFER: true 36 | UPLOAD_WETRANSFER: false 37 | TZ: Asia/Shanghai 38 | 39 | jobs: 40 | build: 41 | runs-on: ubuntu-18.04 42 | if: github.event.repository.owner.id == github.event.sender.id 43 | 44 | steps: 45 | - name: Checkout 46 | uses: actions/checkout@master 47 | 48 | - name: Initialization environment 49 | env: 50 | DEBIAN_FRONTEND: noninteractive 51 | run: | 52 | sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc 53 | sudo -E apt-get -qq update 54 | sudo -E apt-get -qq install $(curl -fsSL git.io/depends-ubuntu-1804) 55 | sudo -E apt-get -qq autoremove --purge 56 | sudo -E apt-get -qq clean 57 | sudo timedatectl set-timezone "$TZ" 58 | sudo mkdir -p /workdir 59 | sudo chown $USER:$GROUPS /workdir 60 | - name: Clone source code 61 | working-directory: /workdir 62 | run: | 63 | df -hT $PWD 64 | git clone --depth 1 $REPO_URL -b $REPO_BRANCH openwrt 65 | ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt 66 | - name: Load custom feeds 67 | run: | 68 | [ -e $FEEDS_CONF ] && mv $FEEDS_CONF openwrt/feeds.conf.default 69 | chmod +x $DIY_P1_SH 70 | cd openwrt 71 | $GITHUB_WORKSPACE/$DIY_P1_SH 72 | - name: Update feeds 73 | run: cd openwrt && ./scripts/feeds update -a 74 | 75 | - name: Install feeds 76 | run: cd openwrt && ./scripts/feeds install -a 77 | 78 | - name: Load custom configuration 79 | run: | 80 | [ -e files ] && mv files openwrt/files 81 | [ -e $CONFIG_FILE ] && mv $CONFIG_FILE openwrt/.config 82 | chmod +x $DIY_P2_SH 83 | cd openwrt 84 | $GITHUB_WORKSPACE/$DIY_P2_SH 85 | - name: SSH connection to Actions 86 | uses: P3TERX/debugger-action@master 87 | if: env.SSH_ACTIONS == 'true' || contains(github.event.action, 'ssh') 88 | 89 | - name: Download package 90 | id: package 91 | run: | 92 | cd openwrt 93 | make defconfig 94 | make download -j8 95 | find dl -size -1024c -exec ls -l {} \; 96 | find dl -size -1024c -exec rm -f {} \; 97 | - name: Compile the firmware 98 | id: compile 99 | run: | 100 | cd openwrt 101 | echo -e "$(nproc) thread compile" 102 | make -j$(nproc) || make -j1 || make -j1 V=s 103 | echo "::set-output name=status::success" 104 | grep '^CONFIG_TARGET.*DEVICE.*=y' .config | sed -r 's/.*DEVICE_(.*)=y/\1/' > DEVICE_NAME 105 | [ -s DEVICE_NAME ] && echo "::set-env name=DEVICE_NAME::_$(cat DEVICE_NAME)" 106 | echo "::set-env name=FILE_DATE::_$(date +"%Y%m%d%H%M")" 107 | - name: Check space usage 108 | if: (!cancelled()) 109 | run: df -hT 110 | 111 | - name: Upload bin directory 112 | uses: actions/upload-artifact@master 113 | if: steps.compile.outputs.status == 'success' && env.UPLOAD_BIN_DIR == 'true' 114 | with: 115 | name: OpenWrt_bin${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 116 | path: openwrt/bin 117 | 118 | - name: Organize files 119 | id: organize 120 | if: env.UPLOAD_FIRMWARE == 'true' && !cancelled() 121 | run: | 122 | cd openwrt/bin/targets/*/* 123 | rm -rf packages 124 | echo "::set-env name=FIRMWARE::$PWD" 125 | echo "::set-output name=status::success" 126 | - name: Upload firmware directory 127 | uses: actions/upload-artifact@master 128 | if: steps.organize.outputs.status == 'success' && !cancelled() 129 | with: 130 | name: OpenWrt_firmware${{ env.DEVICE_NAME }}${{ env.FILE_DATE }} 131 | path: ${{ env.FIRMWARE }} 132 | 133 | - name: Upload firmware to cowtransfer 134 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_COWTRANSFER == 'true' && !cancelled() 135 | run: | 136 | curl -fsSL git.io/file-transfer | sh 137 | ./transfer cow --block 2621440 -s -p 64 --no-progress ${FIRMWARE} 2>&1 | tee cowtransfer.log 138 | echo "::warning file=cowtransfer.com::$(cat cowtransfer.log | grep https)" 139 | - name: Upload firmware to WeTransfer 140 | if: steps.organize.outputs.status == 'success' && env.UPLOAD_WETRANSFER == 'true' && !cancelled() 141 | run: | 142 | curl -fsSL git.io/file-transfer | sh 143 | ./transfer wet -s -p 16 --no-progress ${FIRMWARE} 2>&1 | tee wetransfer.log 144 | echo "::warning file=wetransfer.com::$(cat wetransfer.log | grep https)" 145 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # tensorflow-windows-custom-build-binary 2 | tensorflow1.13.0rc2 custom build based on Windows x64 3 | 4 | 1. using tensorflow1.13.0rc2(https://github.com/tensorflow/tensorflow), building with bazel. 5 | 2. include some customed building configs, eg. GPU_CUDA10.0_CUDNN7.4, CPU_AVX2 etc. 6 | 3. tensorflow.dll & tensorflow.lib & c_api. 7 | 4. based on VC2015 tool. And how to Develop in Visual Studio? visit: https://github.com/Neargye/hello_tf_c_api 8 | -------------------------------------------------------------------------------- /cpu_avx/cpu_avx.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/cpu_avx/cpu_avx.rar -------------------------------------------------------------------------------- /cpu_avx2/1.txt: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /cpu_avx2/cpu_avx2.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/cpu_avx2/cpu_avx2.rar -------------------------------------------------------------------------------- /gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1/gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1.part01.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1/gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1.part01.rar -------------------------------------------------------------------------------- /gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1/gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1.part02.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1/gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap6.1.part02.rar -------------------------------------------------------------------------------- /gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1/gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1.part01.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1/gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1.part01.rar -------------------------------------------------------------------------------- /gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1/gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1.part02.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1/gpu_cuda10.0_cudnn7.4.1.5_avx_computecap6.1.part02.rar -------------------------------------------------------------------------------- /windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part01.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part01.rar -------------------------------------------------------------------------------- /windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part02.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part02.rar -------------------------------------------------------------------------------- /windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part03.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part03.rar -------------------------------------------------------------------------------- /windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part04.rar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/chicitipo/tensorflow-GPU-CUDA10.0-windows-DLL-binary/92e023877e6330b24fff4d6dc5e5644f0f30f83f/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5/windows_x64_gpu_cuda10.0_cudnn7.4.1.5_avx2_computecap7.5.part02.part04.rar --------------------------------------------------------------------------------