question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  Hi,

I was very happy when I learned that DEVSIM was integrated into gdsfactory (great work!). I updated it with the command:

pip install gdsfactory --upgrade

and then:

pip install gdsfactory[full]

I noticed that the DEVSIM package was installed: image However, the integration with gdsfactory doesn’t works: image Also I tried to find some functions into gdsfactory.simulation related with DEVSIM: image and I didn’t find any function. Then I deleted and installed gdsfactory (and plugins) and the issues persisted.

Is there something I did wrong? Is there any step in the update that I didn’t do?

_Originally posted by @adophobr in https://github.com/gdsfactory/gdsfactory/discussions/799_

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tcadusercommented, Nov 1, 2022

The original poster was successfully loading devsim with the gdsfactory[full] package. Their issue was with a gdsfactory module load.

I avoided making the Intel MKL a pip dependency, because Anaconda users would potentially have 2 different MKL installs in the same environment, totaling over a GB in memory.

devsim supports other lapack and blas libraries by setting the DEVSIM_MATH_LIBS environment variable. The solver then switches from the Intel MKL Pardiso direct solver to SuperLU. This may result in numerical differences in the results. I will have an updated release soon, which will automatically search for libopenblas, liblapack, and then libblas if the Intel MKL is not installed.

0reactions
tcadusercommented, Nov 6, 2022

With version 2.3.6 of devsim, it will search:

  1. DEVSIM_MATH_LIBS environment variable
  2. Intel MKL libraries
  3. libopenblas.so:liblapack.so:libblas.so

It will automatically switch from MKL Pardiso to SuperLU direct solver if the MKL libraries are not available.

Please see: https://github.com/devsim/devsim/blob/main/CHANGES.md

Read more comments on GitHub >

github_iconTop Results From Across the Web

14. Command Reference - DEVSIM Manual
Returns a list of the equation numbers corresponding to each node in a region. Values are only valid when during the course of...
Read more >
devsim - TCAD Semiconductor Device Simulator - GitHub
DEVSIM is a tool for TCAD Device Simulation, using finite volume methods. The source code is provided by DEVSIM LLC. Website: The official...
Read more >
Question of solve - scripting - DEVSIM TCAD
I am new user of DEVSIM. Could you give me more details about the definition of “absolute_error” and “relative_error” in solve()?
Read more >
DEVSIM Manual - Zenodo
Fixed bug with transient_tr (trapezoidal) time integration method in the devsim.solve(). (page 105) command where the wrong sign was used to integrate ...
Read more >
DEVSIM: TCAD Semiconductor Device Simulator Development
Technology computer-aided design (TCAD) semiconductor device simulators solve partial differential equations (PDE) using the finite volume method (FVM), or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found