If you need CUDA Tolkit 11 with nvcc, other tools and libraries you can install it from NVIDIA Ubunutu 20.04 repository.
Add Ubuntu 20.04 repository
| alias gitstart='eval "$(ssh-agent -s)" | |
| ssh-add ~/.ssh/id_ed25519 | |
| ' | |
| alias copy='xclip -selection clipboard' | |
| # alias bjson='python -m json.tool' # beautify json | |
| bjsonStr(){ | |
| echo "$1" | python3 -m json.tool | |
| } | |
| bjsonFile(){ | |
| python3 -m json.tool "$1" |
| import QtQuick 2.15 | |
| Rectangle { | |
| id:rootRect | |
| property int currentValue:0; | |
| property int maxValue:100; | |
| property int minValue:0; | |
| property color colorBar:"#7ec26e"; | |
| property alias textBar: barText |
| //////// demo online: https://quick-bench.com/q/TYcfwD0khRpbE53rn8cRtn7nmvA | |
| #include <vector> | |
| #include <cstddef> | |
| static constexpr auto totalVecSize = 99'999; | |
| struct __attribute__ ((packed)) AAA_packed { | |
| int a; | |
| char b; | |
| float c; |
| #include "ProcedualSpline.h" | |
| #include "AwesomeStruct.h" | |
| FAwesomeStruct FAwesomeStruct::BuildAwesomeStruct( | |
| FVector AwesomeVector, | |
| bool AwesomeBoolean, | |
| float AwesomeFloat, | |
| int32 AwesomeInteger, | |
| FRotator AwesomeRotator | |
| ) |
| # - Try to find FFMPEG | |
| # Once done this will define | |
| # FFMPEG_FOUND - System has FFMPEG | |
| # FFMPEG_INCLUDE_DIRS - The FFMPEG include directories | |
| # FFMPEG_LIBRARIES - The libraries needed to use FFMPEG | |
| # FFMPEG_LIBRARY_DIRS - The directory to find FFMPEG libraries | |
| # | |
| # written by Roy Shilkrot 2013 http://www.morethantechnical.com/ | |
| # |
| win1 = window.open("https://www.binance.com/en/price/binance-usd") | |
| var windowObject = win1.document | |
| var counter = 0 | |
| timer1 = setInterval(function() { | |
| win1.location.href = "https://www.binance.com/en/price/binance-usd" | |
| counter++ | |
| console.log("Counter: ", counter) | |
| // if (windowObject < win1.document || windowObject > win1.document) { | |
| // alert("Hi diffrent page") | |
| // } |
| //https://github.com/google/benchmark/issues/1157 | |
| #include <benchmark/benchmark.h> | |
| #include <vector> | |
| #include <future> | |
| #include <numeric> | |
| #include <span> | |
| using NumberType = float; | |
| using ReduceType = double; |
| # Checkout config tool: https://zed0.co.uk/clang-format-configurator/ | |
| # Or http://cf.monofraps.net/ | |
| # https://clang.llvm.org/docs/ClangFormatStyleOptions.html | |
| # https://github.com/01org/parameter-framework/blob/master/.clang-format | |
| # Tested on: clang-format version 6.0.1 | |
| # Common settings | |
| BasedOnStyle: WebKit |
| # Download RapidJSON | |
| ExternalProject_Add( | |
| rapidjson | |
| PREFIX "vendor/rapidjson" | |
| GIT_REPOSITORY "https://github.com/Tencent/rapidjson.git" | |
| GIT_TAG f54b0e47a08782a6131cc3d60f94d038fa6e0a51 | |
| TIMEOUT 10 | |
| CMAKE_ARGS | |
| -DRAPIDJSON_BUILD_TESTS=OFF | |
| -DRAPIDJSON_BUILD_DOC=OFF |