diff --git a/src/spicelib/devices/asrc/asrcset.c b/src/spicelib/devices/asrc/asrcset.c index bff162298..da0c4f39c 100644 --- a/src/spicelib/devices/asrc/asrcset.c +++ b/src/spicelib/devices/asrc/asrcset.c @@ -32,6 +32,12 @@ ASRCsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) NG_IGNORE(states); for (; model; model = ASRCnextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + for (here = ASRCinstances(model); here; here=ASRCnextInstance(here)) { if (!here->ASRCtree) diff --git a/src/spicelib/devices/bjt/bjtsetup.c b/src/spicelib/devices/bjt/bjtsetup.c index e2cc3d3ba..6c34fd1e2 100644 --- a/src/spicelib/devices/bjt/bjtsetup.c +++ b/src/spicelib/devices/bjt/bjtsetup.c @@ -34,6 +34,11 @@ BJTsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the diode models */ for( ; model != NULL; model = BJTnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if(model->BJTtype != NPN && model->BJTtype != PNP) { model->BJTtype = NPN; } diff --git a/src/spicelib/devices/bsim1/b1set.c b/src/spicelib/devices/bsim1/b1set.c index af910fe7b..c2153e1bb 100644 --- a/src/spicelib/devices/bsim1/b1set.c +++ b/src/spicelib/devices/bsim1/b1set.c @@ -26,8 +26,13 @@ B1setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, /* loop through all the B1 device models */ for( ; model != NULL; model = B1nextModel(model)) { - -/* Default value Processing for B1 MOSFET Models */ + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for B1 MOSFET Models */ if( ! model->B1typeGiven) { model->B1type = NMOS; /* NMOS */ } diff --git a/src/spicelib/devices/bsim2/b2set.c b/src/spicelib/devices/bsim2/b2set.c index c868d4811..9642fd3fc 100644 --- a/src/spicelib/devices/bsim2/b2set.c +++ b/src/spicelib/devices/bsim2/b2set.c @@ -25,8 +25,13 @@ B2setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the B2 device models */ for( ; model != NULL; model = B2nextModel(model)) { - -/* Default value Processing for B2 MOSFET Models */ + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for B2 MOSFET Models */ if( ! model->B2typeGiven) { model->B2type = NMOS; /* NMOS */ } diff --git a/src/spicelib/devices/bsim3/b3set.c b/src/spicelib/devices/bsim3/b3set.c index 3480b47ee..a75a4b4e6 100644 --- a/src/spicelib/devices/bsim3/b3set.c +++ b/src/spicelib/devices/bsim3/b3set.c @@ -51,7 +51,13 @@ BSIM3instance **InstArray; /* loop through all the BSIM3 device models */ for( ; model != NULL; model = BSIM3nextModel(model)) { -/* Default value Processing for BSIM3 MOSFET Models */ + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for BSIM3 MOSFET Models */ if (!model->BSIM3typeGiven) model->BSIM3type = NMOS; if (!model->BSIM3mobModGiven) diff --git a/src/spicelib/devices/bsim3soi_dd/b3soiddset.c b/src/spicelib/devices/bsim3soi_dd/b3soiddset.c index a9fc99367..0bf1bcc43 100644 --- a/src/spicelib/devices/bsim3soi_dd/b3soiddset.c +++ b/src/spicelib/devices/bsim3soi_dd/b3soiddset.c @@ -49,8 +49,13 @@ IFuid tmpName; /* loop through all the B3SOIDD device models */ for( ; model != NULL; model = B3SOIDDnextModel(model)) { -/* Default value Processing for B3SOIDD MOSFET Models */ +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for B3SOIDD MOSFET Models */ if (!model->B3SOIDDtypeGiven) model->B3SOIDDtype = NMOS; if (!model->B3SOIDDmobModGiven) diff --git a/src/spicelib/devices/bsim3soi_fd/b3soifdset.c b/src/spicelib/devices/bsim3soi_fd/b3soifdset.c index d6ee51654..f4d013b20 100644 --- a/src/spicelib/devices/bsim3soi_fd/b3soifdset.c +++ b/src/spicelib/devices/bsim3soi_fd/b3soifdset.c @@ -49,8 +49,13 @@ IFuid tmpName; /* loop through all the B3SOIFD device models */ for( ; model != NULL; model = B3SOIFDnextModel(model)) { -/* Default value Processing for B3SOIFD MOSFET Models */ +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for B3SOIFD MOSFET Models */ if (!model->B3SOIFDtypeGiven) model->B3SOIFDtype = NMOS; if (!model->B3SOIFDmobModGiven) diff --git a/src/spicelib/devices/bsim3soi_pd/b3soipdset.c b/src/spicelib/devices/bsim3soi_pd/b3soipdset.c index 9136e0289..e1a895a96 100644 --- a/src/spicelib/devices/bsim3soi_pd/b3soipdset.c +++ b/src/spicelib/devices/bsim3soi_pd/b3soipdset.c @@ -49,8 +49,13 @@ IFuid tmpName; /* loop through all the B3SOIPD device models */ for( ; model != NULL; model = B3SOIPDnextModel(model)) { -/* Default value Processing for B3SOIPD MOSFET Models */ +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for B3SOIPD MOSFET Models */ if (!model->B3SOIPDtypeGiven) model->B3SOIPDtype = NMOS; if (!model->B3SOIPDmobModGiven) diff --git a/src/spicelib/devices/bsim3v0/b3v0set.c b/src/spicelib/devices/bsim3v0/b3v0set.c index d518d0e24..badad0cb8 100644 --- a/src/spicelib/devices/bsim3v0/b3v0set.c +++ b/src/spicelib/devices/bsim3v0/b3v0set.c @@ -37,7 +37,13 @@ IFuid tmpName; /* loop through all the BSIM3v0 device models */ for( ; model != NULL; model = BSIM3v0nextModel(model)) { -/* Default value Processing for BSIM3v0 MOSFET Models */ + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for BSIM3v0 MOSFET Models */ if (!model->BSIM3v0typeGiven) model->BSIM3v0type = NMOS; if (!model->BSIM3v0mobModGiven) diff --git a/src/spicelib/devices/bsim3v1/b3v1set.c b/src/spicelib/devices/bsim3v1/b3v1set.c index 932a1ed47..8dc7fcb33 100644 --- a/src/spicelib/devices/bsim3v1/b3v1set.c +++ b/src/spicelib/devices/bsim3v1/b3v1set.c @@ -43,7 +43,13 @@ IFuid tmpName; /* loop through all the BSIM3v1 device models */ for( ; model != NULL; model = BSIM3v1nextModel(model)) { -/* Default value Processing for BSIM3v1 MOSFET Models */ + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for BSIM3v1 MOSFET Models */ if (!model->BSIM3v1typeGiven) model->BSIM3v1type = NMOS; if (!model->BSIM3v1mobModGiven) diff --git a/src/spicelib/devices/bsim3v32/b3v32set.c b/src/spicelib/devices/bsim3v32/b3v32set.c index e0c0cd43a..2140e407b 100644 --- a/src/spicelib/devices/bsim3v32/b3v32set.c +++ b/src/spicelib/devices/bsim3v32/b3v32set.c @@ -47,7 +47,13 @@ BSIM3v32instance **InstArray; /* loop through all the BSIM3v32 device models */ for( ; model != NULL; model = BSIM3v32nextModel(model)) { -/* Default value Processing for BSIM3v32 MOSFET Models */ + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for BSIM3v32 MOSFET Models */ if (!model->BSIM3v32typeGiven) model->BSIM3v32type = NMOS; if (!model->BSIM3v32mobModGiven) diff --git a/src/spicelib/devices/bsim4/b4set.c b/src/spicelib/devices/bsim4/b4set.c index 01d16d8a4..0e32f74cf 100644 --- a/src/spicelib/devices/bsim4/b4set.c +++ b/src/spicelib/devices/bsim4/b4set.c @@ -110,7 +110,14 @@ BSIM4instance **InstArray; /* loop through all the BSIM4 device models */ for( ; model != NULL; model = BSIM4nextModel(model)) - { /* process defaults of model parameters */ + { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* process defaults of model parameters */ if (!model->BSIM4typeGiven) model->BSIM4type = NMOS; diff --git a/src/spicelib/devices/bsim4v5/b4v5set.c b/src/spicelib/devices/bsim4v5/b4v5set.c index 1f26487e2..367d810ac 100644 --- a/src/spicelib/devices/bsim4v5/b4v5set.c +++ b/src/spicelib/devices/bsim4v5/b4v5set.c @@ -67,7 +67,14 @@ BSIM4v5instance **InstArray; /* loop through all the BSIM4v5 device models */ for( ; model != NULL; model = BSIM4v5nextModel(model)) - { /* process defaults of model parameters */ + { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* process defaults of model parameters */ if (!model->BSIM4v5typeGiven) model->BSIM4v5type = NMOS; diff --git a/src/spicelib/devices/bsim4v6/b4v6set.c b/src/spicelib/devices/bsim4v6/b4v6set.c index 1fa4deee0..547803b63 100644 --- a/src/spicelib/devices/bsim4v6/b4v6set.c +++ b/src/spicelib/devices/bsim4v6/b4v6set.c @@ -74,7 +74,14 @@ BSIM4v6instance **InstArray; /* loop through all the BSIM4v6 device models */ for( ; model != NULL; model = BSIM4v6nextModel(model)) - { /* process defaults of model parameters */ + { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* process defaults of model parameters */ if (!model->BSIM4v6typeGiven) model->BSIM4v6type = NMOS; diff --git a/src/spicelib/devices/bsimsoi/b4soiset.c b/src/spicelib/devices/bsimsoi/b4soiset.c index 70965f5f2..343ec370c 100644 --- a/src/spicelib/devices/bsimsoi/b4soiset.c +++ b/src/spicelib/devices/bsimsoi/b4soiset.c @@ -61,8 +61,13 @@ B4SOIinstance **InstArray; /* loop through all the B4SOI device models */ for( ; model != NULL; model = B4SOInextModel(model)) { -/* Default value Processing for B4SOI MOSFET Models */ +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + + /* Default value Processing for B4SOI MOSFET Models */ if (!model->B4SOItypeGiven) model->B4SOItype = NMOS; if (!model->B4SOImobModGiven) diff --git a/src/spicelib/devices/cccs/cccsset.c b/src/spicelib/devices/cccs/cccsset.c index 0c1e7fa92..9c1399d04 100644 --- a/src/spicelib/devices/cccs/cccsset.c +++ b/src/spicelib/devices/cccs/cccsset.c @@ -29,6 +29,11 @@ CCCSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the voltage source models */ for( ; model != NULL; model = CCCSnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* loop through all the instances of the model */ for (here = CCCSinstances(model); here != NULL ; here=CCCSnextInstance(here)) { diff --git a/src/spicelib/devices/ccvs/ccvsset.c b/src/spicelib/devices/ccvs/ccvsset.c index d3b68dc29..9b64c6959 100644 --- a/src/spicelib/devices/ccvs/ccvsset.c +++ b/src/spicelib/devices/ccvs/ccvsset.c @@ -27,6 +27,11 @@ CCVSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the voltage source models */ for( ; model != NULL; model = CCVSnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* loop through all the instances of the model */ for (here = CCVSinstances(model); here != NULL ; here=CCVSnextInstance(here)) { diff --git a/src/spicelib/devices/cpl/cplsetup.c b/src/spicelib/devices/cpl/cplsetup.c index 6e0328590..65e3dc071 100644 --- a/src/spicelib/devices/cpl/cplsetup.c +++ b/src/spicelib/devices/cpl/cplsetup.c @@ -149,6 +149,11 @@ CPLsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state) /* loop through all the models */ for( ; model != NULL; model = CPLnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if (!model->Rmgiven) { SPfrontEnd->IFerrorf (ERR_FATAL, "model %s: lossy line series resistance not given", model->CPLmodName); diff --git a/src/spicelib/devices/csw/cswsetup.c b/src/spicelib/devices/csw/cswsetup.c index edb09ff8c..c33d0ec02 100644 --- a/src/spicelib/devices/csw/cswsetup.c +++ b/src/spicelib/devices/csw/cswsetup.c @@ -24,6 +24,12 @@ CSWsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the current source models */ for( ; model != NULL; model = CSWnextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* Default Value Processing for Switch Model */ if (!model->CSWthreshGiven) { model->CSWiThreshold = 0; diff --git a/src/spicelib/devices/dio/diosetup.c b/src/spicelib/devices/dio/diosetup.c index e06b13ba1..df6c5a628 100644 --- a/src/spicelib/devices/dio/diosetup.c +++ b/src/spicelib/devices/dio/diosetup.c @@ -27,6 +27,11 @@ DIOsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the diode models */ for( ; model != NULL; model = DIOnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if(!model->DIOlevelGiven) { model->DIOlevel = 1; } diff --git a/src/spicelib/devices/hfet1/hfetsetup.c b/src/spicelib/devices/hfet1/hfetsetup.c index fa29ef325..ce6b8dc84 100644 --- a/src/spicelib/devices/hfet1/hfetsetup.c +++ b/src/spicelib/devices/hfet1/hfetsetup.c @@ -30,6 +30,12 @@ HFETAsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the diode models */ for( ; model != NULL; model = HFETAnextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if( (model->HFETAtype != NHFET) && (model->HFETAtype != PHFET) ) { model->HFETAtype = NHFET; } diff --git a/src/spicelib/devices/hfet2/hfet2setup.c b/src/spicelib/devices/hfet2/hfet2setup.c index cb51d3a7c..fb3fce920 100644 --- a/src/spicelib/devices/hfet2/hfet2setup.c +++ b/src/spicelib/devices/hfet2/hfet2setup.c @@ -21,6 +21,12 @@ int HFET2setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state CKTnode *tmp; for( ; model != NULL; model = HFET2nextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if((TYPE != NHFET) && (TYPE != PHFET) ) TYPE = NHFET; if(!model->HFET2cfGiven) diff --git a/src/spicelib/devices/hisim2/hsm2set.c b/src/spicelib/devices/hisim2/hsm2set.c index c66a7ec71..46f952fcd 100644 --- a/src/spicelib/devices/hisim2/hsm2set.c +++ b/src/spicelib/devices/hisim2/hsm2set.c @@ -121,6 +121,12 @@ int HSM2setup( /* loop through all the HSM2 device models */ for ( ;model != NULL ;model = HSM2nextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* Default value Processing for HSM2 MOSFET Models */ if ( !model->HSM2_type_Given ) model->HSM2_type = NMOS ; diff --git a/src/spicelib/devices/hisimhv1/hsmhvset.c b/src/spicelib/devices/hisimhv1/hsmhvset.c index 08ba1d1ac..e36e1687e 100644 --- a/src/spicelib/devices/hisimhv1/hsmhvset.c +++ b/src/spicelib/devices/hisimhv1/hsmhvset.c @@ -65,6 +65,12 @@ int HSMHVsetup( /* loop through all the HSMHV device models */ for ( ;model != NULL ;model = HSMHVnextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* Default value Processing for HVMOS Models */ if ( !model->HSMHV_type_Given ) model->HSMHV_type = NMOS ; diff --git a/src/spicelib/devices/hisimhv2/hsmhv2set.c b/src/spicelib/devices/hisimhv2/hsmhv2set.c index 19d7d6f93..58809a785 100644 --- a/src/spicelib/devices/hisimhv2/hsmhv2set.c +++ b/src/spicelib/devices/hisimhv2/hsmhv2set.c @@ -125,6 +125,12 @@ int HSMHV2setup( /* loop through all the HSMHV2 device models */ for ( ;model != NULL ;model = HSMHV2nextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* Default value Processing for HVMOS Models */ if ( !model->HSMHV2_type_Given ) model->HSMHV2_type = NMOS ; diff --git a/src/spicelib/devices/jfet/jfetset.c b/src/spicelib/devices/jfet/jfetset.c index d2de3d65f..0089aca18 100644 --- a/src/spicelib/devices/jfet/jfetset.c +++ b/src/spicelib/devices/jfet/jfetset.c @@ -29,6 +29,11 @@ JFETsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the diode models */ for( ; model != NULL; model = JFETnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if( (model->JFETtype != NJF) && (model->JFETtype != PJF) ) { model->JFETtype = NJF; } diff --git a/src/spicelib/devices/jfet2/jfet2set.c b/src/spicelib/devices/jfet2/jfet2set.c index 344379320..5a6e07ac1 100644 --- a/src/spicelib/devices/jfet2/jfet2set.c +++ b/src/spicelib/devices/jfet2/jfet2set.c @@ -30,6 +30,11 @@ JFET2setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the diode models */ for( ; model != NULL; model = JFET2nextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if( (model->JFET2type != NJF) && (model->JFET2type != PJF) ) { model->JFET2type = NJF; } diff --git a/src/spicelib/devices/ltra/ltraset.c b/src/spicelib/devices/ltra/ltraset.c index 947dde4fb..88b9df895 100644 --- a/src/spicelib/devices/ltra/ltraset.c +++ b/src/spicelib/devices/ltra/ltraset.c @@ -27,6 +27,11 @@ LTRAsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state) /* loop through all the transmission line models */ for (; model != NULL; model = LTRAnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if (!model->LTRAnlGiven) { model->LTRAnl = .25; } diff --git a/src/spicelib/devices/mes/messetup.c b/src/spicelib/devices/mes/messetup.c index 61f0dac9e..ad585509d 100644 --- a/src/spicelib/devices/mes/messetup.c +++ b/src/spicelib/devices/mes/messetup.c @@ -26,6 +26,11 @@ MESsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the diode models */ for( ; model != NULL; model = MESnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if( (model->MEStype != NMF) && (model->MEStype != PMF) ) { model->MEStype = NMF; } diff --git a/src/spicelib/devices/mesa/mesasetup.c b/src/spicelib/devices/mesa/mesasetup.c index 95c7a05ec..fbb40946c 100644 --- a/src/spicelib/devices/mesa/mesasetup.c +++ b/src/spicelib/devices/mesa/mesasetup.c @@ -28,6 +28,12 @@ MESAsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the diode models */ for( ; model != NULL; model = MESAnextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if( (model->MESAtype != NMF) ) { fprintf(stderr, "Only nmf model type supported, set to nmf\n"); model->MESAtype = NMF; diff --git a/src/spicelib/devices/mos1/mos1set.c b/src/spicelib/devices/mos1/mos1set.c index a4483de3a..ed8eac5d7 100644 --- a/src/spicelib/devices/mos1/mos1set.c +++ b/src/spicelib/devices/mos1/mos1set.c @@ -27,6 +27,11 @@ MOS1setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, /* loop through all the MOS1 device models */ for( ; model != NULL; model = MOS1nextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if(!model->MOS1typeGiven) { model->MOS1type = NMOS; } diff --git a/src/spicelib/devices/mos2/mos2set.c b/src/spicelib/devices/mos2/mos2set.c index b12eb1a98..b452a81a0 100644 --- a/src/spicelib/devices/mos2/mos2set.c +++ b/src/spicelib/devices/mos2/mos2set.c @@ -26,6 +26,11 @@ MOS2setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the MOS2 device models */ for( ; model != NULL; model = MOS2nextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if(!model->MOS2typeGiven) { model->MOS2type = NMOS; } diff --git a/src/spicelib/devices/mos3/mos3set.c b/src/spicelib/devices/mos3/mos3set.c index 4432ba461..bff4ec75e 100644 --- a/src/spicelib/devices/mos3/mos3set.c +++ b/src/spicelib/devices/mos3/mos3set.c @@ -30,6 +30,11 @@ MOS3setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the MOS3 device models */ for( ; model != NULL; model = MOS3nextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* perform model defaulting */ if(!model->MOS3typeGiven) { model->MOS3type = NMOS; diff --git a/src/spicelib/devices/mos6/mos6set.c b/src/spicelib/devices/mos6/mos6set.c index a46840630..351600dfc 100644 --- a/src/spicelib/devices/mos6/mos6set.c +++ b/src/spicelib/devices/mos6/mos6set.c @@ -27,6 +27,11 @@ MOS6setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, /* loop through all the MOS6 device models */ for( ; model != NULL; model = MOS6nextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if(!model->MOS6typeGiven) { model->MOS6type = NMOS; } diff --git a/src/spicelib/devices/mos9/mos9set.c b/src/spicelib/devices/mos9/mos9set.c index 1dddbd7e7..ac11e5a20 100644 --- a/src/spicelib/devices/mos9/mos9set.c +++ b/src/spicelib/devices/mos9/mos9set.c @@ -30,6 +30,11 @@ MOS9setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the MOS9 device models */ for( ; model != NULL; model = MOS9nextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* perform model defaulting */ if(!model->MOS9typeGiven) { model->MOS9type = NMOS; diff --git a/src/spicelib/devices/soi3/soi3set.c b/src/spicelib/devices/soi3/soi3set.c index 11eade08a..703b9cea2 100644 --- a/src/spicelib/devices/soi3/soi3set.c +++ b/src/spicelib/devices/soi3/soi3set.c @@ -55,6 +55,11 @@ SOI3setup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the SOI3 device models */ for( ; model != NULL; model = SOI3nextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if(!model->SOI3typeGiven) { model->SOI3type = NSOI3; } diff --git a/src/spicelib/devices/sw/swsetup.c b/src/spicelib/devices/sw/swsetup.c index 11eea0421..41821e8fa 100644 --- a/src/spicelib/devices/sw/swsetup.c +++ b/src/spicelib/devices/sw/swsetup.c @@ -24,6 +24,12 @@ SWsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the current source models */ for( ; model != NULL; model = SWnextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* Default Value Processing for Switch Model */ if (!model->SWthreshGiven) { model->SWvThreshold = 0; diff --git a/src/spicelib/devices/tra/trasetup.c b/src/spicelib/devices/tra/trasetup.c index 8ad68e8ca..b3d25728a 100644 --- a/src/spicelib/devices/tra/trasetup.c +++ b/src/spicelib/devices/tra/trasetup.c @@ -30,6 +30,11 @@ TRAsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state) /* loop through all the transmission line models */ for( ; model != NULL; model = TRAnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* loop through all the instances of the model */ for (here = TRAinstances(model); here != NULL ; here=TRAnextInstance(here)) { diff --git a/src/spicelib/devices/txl/txlsetup.c b/src/spicelib/devices/txl/txlsetup.c index bd2a5ef2a..b2e96eca1 100644 --- a/src/spicelib/devices/txl/txlsetup.c +++ b/src/spicelib/devices/txl/txlsetup.c @@ -87,6 +87,11 @@ TXLsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit*ckt, int *state) /* loop through all the models */ for( ; model != NULL; model = TXLnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if (!model->Rgiven) { SPfrontEnd->IFerrorf (ERR_FATAL, "model %s: lossy line series resistance not given", model->TXLmodName); diff --git a/src/spicelib/devices/urc/urcsetup.c b/src/spicelib/devices/urc/urcsetup.c index 0a7adbc30..cf3cdf684 100644 --- a/src/spicelib/devices/urc/urcsetup.c +++ b/src/spicelib/devices/urc/urcsetup.c @@ -62,6 +62,12 @@ URCsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *state) dtype = CKTtypelook("Diode"); /* loop through all the URC models */ for( ; model != NULL; model = URCnextModel(model)) { + +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if(!model->URCkGiven) model->URCk = 1.5; if(!model->URCfmaxGiven) diff --git a/src/spicelib/devices/vbic/vbicsetup.c b/src/spicelib/devices/vbic/vbicsetup.c index 47907538b..5ce1c6ec4 100644 --- a/src/spicelib/devices/vbic/vbicsetup.c +++ b/src/spicelib/devices/vbic/vbicsetup.c @@ -35,6 +35,11 @@ VBICsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the transistor models */ for( ; model != NULL; model = VBICnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + if(model->VBICtype != NPN && model->VBICtype != PNP) { model->VBICtype = NPN; } diff --git a/src/spicelib/devices/vccs/vccsset.c b/src/spicelib/devices/vccs/vccsset.c index e956708ca..4d47dfc66 100644 --- a/src/spicelib/devices/vccs/vccsset.c +++ b/src/spicelib/devices/vccs/vccsset.c @@ -30,6 +30,11 @@ VCCSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the current source models */ for( ; model != NULL; model = VCCSnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* loop through all the instances of the model */ for (here = VCCSinstances(model); here != NULL ; here=VCCSnextInstance(here)) { diff --git a/src/spicelib/devices/vcvs/vcvsset.c b/src/spicelib/devices/vcvs/vcvsset.c index d3196b4a4..aca4fdd8a 100644 --- a/src/spicelib/devices/vcvs/vcvsset.c +++ b/src/spicelib/devices/vcvs/vcvsset.c @@ -28,6 +28,11 @@ VCVSsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states) /* loop through all the voltage source models */ for( ; model != NULL; model = VCVSnextModel(model)) { +#ifdef USE_CUSPICE + /* This model doesn't support CUDA */ + model->gen.has_cuda = 0 ; +#endif + /* loop through all the instances of the model */ for (here = VCVSinstances(model); here != NULL ; here=VCVSnextInstance(here)) {