Update to the how-to-...
This commit is contained in:
parent
4ceb4ed8eb
commit
5b81ad05cd
|
|
@ -23,6 +23,7 @@ VS 2017 is not supported by actaul CUDA 8.0 (as of Sept. 2017)!
|
||||||
XSPICE and CIDER are not supported.
|
XSPICE and CIDER are not supported.
|
||||||
fftw is not yet supported.
|
fftw is not yet supported.
|
||||||
OpenMP is not yet supported (It will compile, but ngspice.exe segfaults).
|
OpenMP is not yet supported (It will compile, but ngspice.exe segfaults).
|
||||||
|
Shared nggspice with CUDA is (not yet) supported.
|
||||||
|
|
||||||
Visual Studio is started by double click on cuspice.sln.
|
Visual Studio is started by double click on cuspice.sln.
|
||||||
Select 'Build' 'Configuration Manager' and then choose one
|
Select 'Build' 'Configuration Manager' and then choose one
|
||||||
|
|
@ -38,9 +39,7 @@ to compile the CUDA files named *.cu, and afterwards all
|
||||||
other files are compiled and ngspice.exe is generated. Finally
|
other files are compiled and ngspice.exe is generated. Finally
|
||||||
make-install-vngspice.bat is called to copy ngspice.exe,
|
make-install-vngspice.bat is called to copy ngspice.exe,
|
||||||
spinit into a directory tree, that resembles the one
|
spinit into a directory tree, that resembles the one
|
||||||
generated by mingw 'make install'. Some warnings pop up
|
generated by mingw 'make install'. An example tree is given
|
||||||
that some files cannot be copied (these are in fact the code
|
|
||||||
models not being available). An example tree is given
|
|
||||||
below.
|
below.
|
||||||
|
|
||||||
C:\Spice64\
|
C:\Spice64\
|
||||||
|
|
@ -52,8 +51,7 @@ C:\Spice64\
|
||||||
scripts\
|
scripts\
|
||||||
spinit
|
spinit
|
||||||
|
|
||||||
|
C:\Spice64\ may be renamed to any folder which offers
|
||||||
|
rights for read and write to ngspice.
|
||||||
If spinit is not found in the directory cited above,
|
If spinit is not found in the directory cited above,
|
||||||
ngspice.exe also searches for spinit in its own directory.
|
ngspice.exe also searches for spinit in its own directory.
|
||||||
|
|
||||||
You may edit spinit to remove all line starting with 'codemodel'
|
|
||||||
to avoid warnings after starting ngspice.
|
|
||||||
|
|
|
||||||
|
|
@ -1,43 +0,0 @@
|
||||||
ngspice for cuda may be compiled by MS Visual Studio Community 2015.
|
|
||||||
VS 2017 is not compatible with cuda 8.0 (you will have to wait for 9.0).
|
|
||||||
|
|
||||||
For compilation you need the GNU bison parser generator.
|
|
||||||
|
|
||||||
A ready for windows compiled variant can be downloaded as
|
|
||||||
win_flex_bison-latest.zip
|
|
||||||
from
|
|
||||||
http://sourceforge.net/projects/winflexbison/files/
|
|
||||||
|
|
||||||
Create the directory
|
|
||||||
../../flex-bison
|
|
||||||
relative from this directory right here, and unzip there.
|
|
||||||
|
|
||||||
We will invoke the win_bison.exe file
|
|
||||||
in this directory during the visual studio compilation.
|
|
||||||
|
|
||||||
Install CUDA 8.0 from
|
|
||||||
https://developer.nvidia.com/cuda-downloads
|
|
||||||
|
|
||||||
Visual Studio is started by double click on cuspice.sln.
|
|
||||||
Select 'Build' 'Configuration Manager' and then choose one
|
|
||||||
of the build options, e.g. 'Active solution configuration'
|
|
||||||
with its Debug or Release GUI versions or the
|
|
||||||
equivalent console version (no GUI, no graphical interface),
|
|
||||||
and 'Active solution platform', generating 64 bit code only.
|
|
||||||
|
|
||||||
XSPICE and CIDER is not supported by cuspice.
|
|
||||||
|
|
||||||
Installation procedure will generate the following tree:
|
|
||||||
|
|
||||||
C:\Spice64\
|
|
||||||
bin\
|
|
||||||
ngspice.exe
|
|
||||||
vcomp140.dll
|
|
||||||
share\
|
|
||||||
ngspice
|
|
||||||
scripts\
|
|
||||||
spinit
|
|
||||||
|
|
||||||
C:\Spice64\ may be renamed to any folder with rights for read and write.
|
|
||||||
If spinit is not found in the directory cited above,
|
|
||||||
ngspice.exe also searches for spinit in its own directory.
|
|
||||||
Loading…
Reference in New Issue