Commit Graph

5854 Commits

Author SHA1 Message Date
Francesco Lannutti 3b9f40a74c Fix the clear phase of Matrix and RHS once for all 2018-04-23 14:56:28 +02:00
Francesco Lannutti ef5191e7a4 Merge branch 'CUSPICE+6-untested' of ssh://git.code.sf.net/p/ngspice/ngspice into CUSPICE+6-untested 2018-04-23 02:07:31 +02:00
Francesco Lannutti 94b7b82b73 Fix the case when only one model supports CUDA for RHS and one model doesn't support CUDA at all 2018-04-23 01:55:34 +02:00
rlar cf7c554c74 devices/*, move kind of `enum' defines out of struct definition 2018-04-22 21:02:50 +02:00
rlar 8fddbfc1ba vsrc/isrc, use an explicit #ifdef "PULSE_FUN_TYPES" guard
to avoid duplicate definition
2018-04-22 21:02:50 +02:00
rlar 9320cf2481 sensitivity, drop redundant #defines SENS_LIN/OCT/DEC/DEFPERT
use SENS_LINEAR/OCTAVE/DECADE/DEFPERTUB instead
2018-04-22 21:02:50 +02:00
rlar a7f086f54a sensitivity, use numStates and numSenStates instead of hardcoded literals 2018-04-22 21:02:50 +02:00
rlar a92c11b295 devices/vbic/vbicsetup.c, bug fix, incorrect states allocation
VBICnumSenStates is 10 not 8
2018-04-22 21:02:49 +02:00
rlar a345f60639 spicelib/devices/*, drop empty destroy functions 2018-04-22 21:02:49 +02:00
rlar 6d59f45c54 res/restemp.c, avoid temporary NaN value, (simplify debugging)
RESupdate_conduct() may be called several times before all
  parameters have been set via RESparam() invocations,
  or finally being set to default values in RESsetup()

Especially RESscale might still be 0.0 as well as RESm
  thus temporarily creating a NaN in RESupdate_conduct.
This would unnecessarily complicate debugging with enabled
  floating point exceptions.
2018-04-22 21:02:49 +02:00
rlar ef0aef05fe spicelib/devices/{sw,csw}, unify CKTstates[] access
do it the same way as the other devices do

access CKTstates[][slot] via device specific descriptive macros
access CKTstates[] via CKTstate0 CKTstate1 macros

this patch has been checked for object file in-variance with gcc
2018-04-22 21:02:49 +02:00
rlar cb0baad184 spicelib/devices/{sw,csw}, cleanup for readability
This change is functional invariant, and has been checked
 with gcc for object file in-variance.
For the details see the "rewrite-sw" branch
2018-04-22 21:02:45 +02:00
rlar da718ddf3b fix commit "VS project files for CUDA" 2018-04-22 20:46:09 +02:00
rlar edb8c1c4ed fix commit "VS project files for CUDA" 2018-04-22 19:23:23 +02:00
Francesco Lannutti d0803e5ed6 Move the RHS allocation for Topology Matrix upfront 2018-04-20 00:34:53 +02:00
Francesco Lannutti 6090572fe0 Fix the case when there is no RHS computed by device models 2018-04-19 00:53:55 +02:00
Francesco Lannutti 750cc1e7fd Fix the CUDA flag for ISRC model 2018-04-15 23:47:21 +02:00
rlar 2c7a5e7fc5 Merge a cleaned up branch into HEAD 2018-04-03 15:09:48 +02:00
Holger Vogt 2d3b17cd8a disable pragma #warning for VisualStudio 2018-04-03 14:46:02 +02:00
Holger Vogt a6ef64c89a Update to the how-to-... 2018-04-03 14:46:02 +02:00
Holger Vogt 1ada413fd3 how-to-ngspice-vstudio.txt, update for use with cuda 2018-04-03 14:46:02 +02:00
Holger Vogt 0c684251de remove OpenMP entries. OpenMP is not supported. 2018-04-03 14:46:01 +02:00
Holger Vogt ad5a874257 remove unused 2018-04-03 14:46:01 +02:00
Holger Vogt c4b8bf17a7 Remove XSPICE from spinit 2018-04-03 14:46:01 +02:00
Holger Vogt ee406cf34b Make search path for spinit relative to executable. 2018-04-03 14:46:01 +02:00
Holger Vogt 35b30ac74c remove old project files which are not supported anymore. 2018-04-03 14:46:01 +02:00
h_vogt 8f2d2a9d9d no OpneMP support
DEbug info only when debug version
use /LTCG for optimized code
2018-04-03 14:46:01 +02:00
h_vogt 56cd13f9d7 enhance compute capability beyond deprecated values:
compute_50,sm_50
debug info only when debug version is compiled
2018-04-03 14:46:01 +02:00
h_vogt e878b526fd A tiny instruction of compiling ngspice with CUDA using Visual Studio 2015 2018-04-03 14:46:01 +02:00
h_vogt e4bd850684 VS project files for CUDA 2018-04-03 14:46:00 +02:00
h_vogt 7976dbd563 add a missing definition of CONSTvt0 2018-04-03 14:46:00 +02:00
h_vogt 20beec55d0 add mssing definition of M_PI 2018-04-03 14:46:00 +02:00
h_vogt adf59f39b2 config.h, disable XSPICE and CIDER 2018-04-03 14:46:00 +02:00
Francesco Lannutti 5676df66a5 explicitly clear has_cuda for all non-CUDA models 2018-04-03 14:46:00 +02:00
Francesco Lannutti b5763eb0d8 Added the support for CUDA and non-CUDA models within the same netlist in CUSPICE 2018-04-03 14:45:54 +02:00
Francesco Lannutti a4a3da9dfd whitespace, indentation for the next commit 2018-04-03 14:45:47 +02:00
Francesco Lannutti ebfc69f1e0 Let NGSPICE overwrite Pivoting Tolerance within KLU with PivRel 2018-04-03 14:23:26 +02:00
Francesco Lannutti fd8f43e254 Add the support for '.ic' and '.nodeset' instructions within KLU 2018-04-03 14:23:26 +02:00
Francesco Lannutti d2109f9e10 Relaxed ABSTOL and pushed GMIN to make c7552 circuit convergence 2018-04-03 14:23:25 +02:00
Francesco Lannutti 7f5cb89ad4 Fixed a bug in CKTload regarding CKTdiagGmin. It where added 2 times 2018-04-03 14:23:25 +02:00
Francesco Lannutti 6a918f1385 Fixed again the wrapper for libtool for Linux 2018-04-03 14:23:25 +02:00
Francesco Lannutti e632c4a6ab Fixed configuration for MacOS 2018-04-03 14:23:25 +02:00
Francesco Lannutti e00553e952 Added new architectures and fixed a bug for MacOS (Darwin) 2018-04-03 14:23:25 +02:00
rlar 740e9ef0aa cuda test, a bsim dc i(vd) plot 2018-04-03 14:23:25 +02:00
rlar 4690d66909 cuspice testcases, fix inductor values 2018-04-03 14:23:25 +02:00
rlar 7f6a9a6de8 gtx1050ti with debian nvida-cuda-toolkit 7.5 2018-04-03 14:23:25 +02:00
rlar ba7c6842a1 automake, version 15, introduce subdir-objects
for CUSPICE/*.c files in a subdirectory
2018-04-03 14:23:24 +02:00
Francesco Lannutti fb1fb2deb4 Fixed a bug in CKTtrunc reduction when there is nothing to reduce 2018-04-03 14:23:24 +02:00
Francesco Lannutti dcb62b8259 Moved Truncation Error Calculation into GPU for CUSPICE 2018-04-03 14:23:24 +02:00
Francesco Lannutti e668ce5791 Fixed CUSPICE compilation under NVCC versions prior than 6.0. CUSPICE will be compiled for every architectures supported by NVCC 2018-04-03 14:23:24 +02:00