You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Windows GPU Build conducted by build_windows.py failed. The root cause is that _CONSTEXPR_IF is defined to nothing when compiling the C++ header random with CUDACC.
In \path\to\mxnet\ci directory, run python build_windows.py -f WIN_GPU.
Steps to reproduce
(Paste the commands you ran that produced the error.)
cd \path\to\mxnet\ci
set OpenBLAS_HOME=\OpenBLAS\0.3.13
set OpenCV_DIR=\opencv\4.5.2
set CUDA_PATH=\cuda\v11.3
python build_windows.py -f WIN_GPU
What have you tried to solve it?
Created a small piece of sample code to narrow down the problem.
// sampe.cu
// It has to be a cu file and is compiled by nvcc
#include <iostream>
#include <random>
int main()
{
std::random_device rd;
std::mt19937 gen(rd());
std::poisson_distribution<int> d(4);
std::cout << d(gen) << std::endl;
return 0;
}
Actually, it's kind of MSVC limitation.
I will create a PR to propose a fix.
Environment
Environment Information
----------Python Info----------
Version : 3.9.4
Compiler : MSC v.1916 64 bit (AMD64)
Build : ('default', 'Apr 9 2021 11:43:21')
Arch : ('64bit', 'WindowsPE')
------------Pip Info-----------
Version : 21.0.1
Directory : D:\develop\py-envs\mxnet\lib\site-packages\pip
----------MXNet Info-----------
An error occured trying to import mxnet.
This is very likely due to missing missing or incompatible library files.
Traceback (most recent call last):
File "D:\develop\oss\diagnose.py", line 96, in check_mxnet
print('Version :', mxnet.__version__)
AttributeError: module 'mxnet' has no attribute '__version__'
----------System Info----------
Platform : Windows-10-10.0.19041-SP0
system : Windows
node : sjiagc-laptop
release : 10
version : 10.0.19041
----------Hardware Info----------
machine : AMD64
processor : Intel64 Family 6 Model 158 Stepping 10, GenuineIntel
Name
Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
----------Network Test----------
Setting timeout: 10
Timing for MXNet: https://github.com/apache/incubator-mxnet, DNS: 0.1067 sec, LOAD: 1.8341 sec.
Timing for Gluon Tutorial(en): http://gluon.mxnet.io, DNS: 0.3620 sec, LOAD: 0.4518 sec.
Error open Gluon Tutorial(cn): https://zh.gluon.ai, <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)>, DNS finished in 0.6243276596069336 sec.
Timing for FashionMNIST: https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/fashion-mnist/train-labels-idx1-ubyte.gz, DNS: 0.2793 sec, LOAD: 1.0372 sec.
Timing for PYPI: https://pypi.python.org/pypi/pip, DNS: 0.1217 sec, LOAD: 0.9116 sec.
Error open Conda: https://repo.continuum.io/pkgs/free/, HTTP Error 403: Forbidden, DNS finished in 0.0009951591491699219 sec.
----------Environment----------
Description
Windows GPU Build conducted by build_windows.py failed. The root cause is that _CONSTEXPR_IF is defined to nothing when compiling the C++ header random with CUDACC.
Error Message
To Reproduce
In \path\to\mxnet\ci directory, run python build_windows.py -f WIN_GPU.
Steps to reproduce
(Paste the commands you ran that produced the error.)
What have you tried to solve it?
Actually, it's kind of MSVC limitation.
Environment
Environment Information