update cuda marco define
This commit is contained in:
parent
3194769235
commit
e6d10852d5
2 changed files with 2 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -91,7 +91,6 @@ gcovr-report: coverage ## Generate gcovr report
|
||||||
mkdir -p gcovr-report
|
mkdir -p gcovr-report
|
||||||
gcovr --root . --html --html-details --output gcovr-report/coverage.html
|
gcovr --root . --html --html-details --output gcovr-report/coverage.html
|
||||||
|
|
||||||
|
|
||||||
ifdef RISCV_CROSS_COMPILE
|
ifdef RISCV_CROSS_COMPILE
|
||||||
CC := riscv64-unknown-linux-gnu-gcc
|
CC := riscv64-unknown-linux-gnu-gcc
|
||||||
CXX := riscv64-unknown-linux-gnu-g++
|
CXX := riscv64-unknown-linux-gnu-g++
|
||||||
|
|
|
@ -84,7 +84,8 @@
|
||||||
#include <cuda_runtime.h>
|
#include <cuda_runtime.h>
|
||||||
#include <cublas_v2.h>
|
#include <cublas_v2.h>
|
||||||
#include <cuda_fp16.h>
|
#include <cuda_fp16.h>
|
||||||
#if CUDA_VERSION < 1100
|
// CUDA 10.2 does not have these macro definitions.
|
||||||
|
#ifndef CUBLAS_TF32_TENSOR_OP_MATH
|
||||||
#define CUBLAS_TF32_TENSOR_OP_MATH CUBLAS_TENSOR_OP_MATH
|
#define CUBLAS_TF32_TENSOR_OP_MATH CUBLAS_TENSOR_OP_MATH
|
||||||
#define CUBLAS_COMPUTE_16F CUDA_R_16F
|
#define CUBLAS_COMPUTE_16F CUDA_R_16F
|
||||||
#define CUBLAS_COMPUTE_32F CUDA_R_32F
|
#define CUBLAS_COMPUTE_32F CUDA_R_32F
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue