forked from jittor/jittor
bug fix
This commit is contained in:
parent
725c9d3544
commit
f5a12baf1e
2
setup.py
2
setup.py
|
@ -16,7 +16,7 @@ from setuptools import setup, find_packages
|
|||
import os
|
||||
|
||||
path = os.path.dirname(__file__)
|
||||
with open(os.path.join(path, "README.src.md"), "r", encoding='utf8') as fh:
|
||||
with open(os.path.join(path, "README.md"), "r", encoding='utf8') as fh:
|
||||
long_description = fh.read()
|
||||
|
||||
setuptools.setup(
|
||||
|
|
|
@ -99,7 +99,7 @@ MemInfo::MemInfo() {
|
|||
total_cpu_ram = info.totalram;
|
||||
total_cuda_ram = 0;
|
||||
#ifdef HAS_CUDA
|
||||
cudaDeviceProp prop = {0};
|
||||
cudaDeviceProp prop;
|
||||
cudaGetDeviceProperties(&prop, 0);
|
||||
total_cuda_ram = prop.totalGlobalMem;
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue