ssh -f -N -o ControlMaster=auto -D 1080 cmsusr.cms
export ALL_PROXY=socks5://localhost:1080
curl http://developer.download.nvidia.com/compute/cuda/10.1/Prod/local_installers/cuda-repo-rhel7-10-1-local-10.1.243-418.87.00-1.0-1.x86_64.rpm -o cuda-repo-rhel7-10-1-local-10.1.243-418.87.00-1.0-1.x86_64.rpm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash -e | |
CUDA_BASE=/usr/local/cuda | |
SYCL_BASE=$PWD | |
INSTALL_PATH=/opt/llvm | |
mkdir -p $SYCL_BASE/llvm | |
cd $SYCL_BASE/llvm | |
if ! [ -d .git ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cuda_runtime.h> | |
#include "cudaCheck.h" | |
int main(void) { | |
// 3D buffer layout | |
constexpr size_t pitch = 32; | |
constexpr size_t width = 20; | |
static_assert(width <= pitch, "The 3D buffer `width` cannot be larger than the `pitch`."); | |
constexpr size_t height = 8; | |
constexpr size_t slices = 4; |
OlderNewer