Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem when build suitesparse-metis-for-windows with CUDA #45

Closed
lujun2445 opened this issue Jul 8, 2017 · 2 comments
Closed

A problem when build suitesparse-metis-for-windows with CUDA #45

lujun2445 opened this issue Jul 8, 2017 · 2 comments

Comments

@lujun2445
Copy link

Hi everyone, I use CMake to generate .sln file, I use visual studio 2015, 64 bit machine, when I do not select WITH_CUDA in configure, the generate sln file can build successfully, it works all OK, but when I select WITH_CUDA, and these are some of the settings in CMake:
CUDA_HOST_COMPILER: $(VCInstallDir)bin
CUDA_SDK_ROOT_DIR: CUDA_SDK_ROOT_DIR-NOTFOUND
CUDA_TOOLKIT_ROOT_DIR: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v8.0
CUDA_USE_STATIC_CUDA_RUNTIME: YES
I have installed CUDA 8.0 and test CUDA successfully. When I build the SuiteSparseProject.sln, some of errors have occurred:
Error C2821; first formal parameter to 'operator new' must be 'size_t'; GPUQREngine; d:\project\suitesparse\suitesparse-metis-for-windows\suitesparse\gpuqrengine\include\GPUQREngine_Front.hpp, Line50
the code is:
void* operator new(long unsigned int reqMem, Front* ptr){ return ptr; }
how can I fix it? thanks very much!

@adam-hartshorne
Copy link

replace the "long unsigned int" type with size_t

@jlblancoc
Copy link
Owner

Fixed by #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants