# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=55

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 56

---

## [GPU backend-agnostic way to create efficiently random number on the GPU](https://discourse.julialang.org/t/gpu-backend-agnostic-way-to-create-efficiently-random-number-on-the-gpu/126110)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 7:44am UTC](https://discourse.julialang.org/t/gpu-backend-agnostic-way-to-create-efficiently-random-number-on-the-gpu/126110 "2025-03-03T07:44:34Z")

</div>

I am trying to make my code Flux code portable across CUDA and AMDGPU. I would like to know if there is a GPU backend-agnostic way to create efficiently random number on the GPU? AMDGPU.randn is by far the fastest, but I…

---

## [Code snippet for multiGPU fft](https://discourse.julialang.org/t/code-snippet-for-multigpu-fft/26035)

<div class="topic-metadata">

**Author:** [@rveltz](https://discourse.julialang.org/u/rveltz)\
**Replies:** 8\
**Last updated:** [March 3, 2025, 7:33am UTC](https://discourse.julialang.org/t/code-snippet-for-multigpu-fft/26035 "2025-03-03T07:33:25Z")

</div>

Hi, I would like to perform a 3d FFT on multi GPUs. It can be done in cuda as explained here. However the functions required do not seem ported in CuArrays. I was wondering if anybody has ever done this in Julia? A sec…

---

## [\[MadNLPHSL\] Feature proposal: simplify installation with custom-compiled HSL library](https://discourse.julialang.org/t/madnlphsl-feature-proposal-simplify-installation-with-custom-compiled-hsl-library/126474)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 12:56am UTC](https://discourse.julialang.org/t/madnlphsl-feature-proposal-simplify-installation-with-custom-compiled-hsl-library/126474 "2025-03-03T00:56:07Z")

</div>

HSL\_jll.jl obtained from https://licences.stfc.ac.uk/products/Software/HSL/LibHSL requires free academic or purchased license and contains extended set of HSL libraries. However there is free license for individuals for …

---

## [ExaModels CPU backend acceleration](https://discourse.julialang.org/t/examodels-cpu-backend-acceleration/126153)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 4\
**Last updated:** [March 2, 2025, 11:26pm UTC](https://discourse.julialang.org/t/examodels-cpu-backend-acceleration/126153 "2025-03-02T23:26:07Z")

</div>

I am trying to setup CPU() backend acceleration as described in ExaModels documentation but it is not working. The optimization runs but on single thread (System monitor detects no multiple threads usage) and with the sa…

---

## [SciMLStructures Tunable includes u0 causing remake failures](https://discourse.julialang.org/t/scimlstructures-tunable-includes-u0-causing-remake-failures/126090)

<div class="topic-metadata">

**Author:** [@johnb](https://discourse.julialang.org/u/johnb)\
**Replies:** 1\
**Last updated:** [March 2, 2025, 11:13pm UTC](https://discourse.julialang.org/t/scimlstructures-tunable-includes-u0-causing-remake-failures/126090 "2025-03-02T23:13:16Z")

</div>

I’ve been trying to understand how to use the Tunable parameter tag, but it seems to include initial conditions when returning a set of parameters as from the example in the ModelingToolkit.jl FAQ page. I’ve included an …

---

## [Optimization of states and parameters with Multibody.jl and ModelingToolkit](https://discourse.julialang.org/t/optimization-of-states-and-parameters-with-multibody-jl-and-modelingtoolkit/126156)

<div class="topic-metadata">

**Author:** [@Odie](https://discourse.julialang.org/u/Odie)\
**Replies:** 1\
**Last updated:** [March 2, 2025, 10:15pm UTC](https://discourse.julialang.org/t/optimization-of-states-and-parameters-with-multibody-jl-and-modelingtoolkit/126156 "2025-03-02T22:15:20Z")

</div>

Hi all, I’m working with a large model created with Multibody.jl and would like to use it to run some optimizations. The optimization variables could be model parameters as well as model states (see a simple problem exa…

---

## [Question and error about optimization for Nueral ode](https://discourse.julialang.org/t/question-and-error-about-optimization-for-nueral-ode/125950)

<div class="topic-metadata">

**Author:** [@yyyyyyyy](https://discourse.julialang.org/u/yyyyyyyy)\
**Replies:** 1\
**Last updated:** [March 2, 2025, 10:02pm UTC](https://discourse.julialang.org/t/question-and-error-about-optimization-for-nueral-ode/125950 "2025-03-02T22:02:35Z")

</div>

Hi i am running the below code in 1.11.1 using ComponentArrays, Lux, DiffEqFlux, Optimization, Random, Plots, OptimizationOptimisers rng = Random.default\_rng() u0 = Float32\[2.0; 0.0\] datasize = 30 tspan = (0.0f0, 1.5f…

---

## [Precompilation error when installing Makie/GLMakie](https://discourse.julialang.org/t/precompilation-error-when-installing-makie-glmakie/126460)

<div class="topic-metadata">

**Author:** [@LucasMSpereira](https://discourse.julialang.org/u/LucasMSpereira)\
**Replies:** 11\
**Last updated:** [March 2, 2025, 10:00pm UTC](https://discourse.julialang.org/t/precompilation-error-when-installing-makie-glmakie/126460 "2025-03-02T22:00:54Z")

</div>

When trying to add Makie, precompilation errors are triggered (with GLMakie, Pango\_jll and GLMakie also show up in this list): Precompiling project... ✗ OpenEXR ✗ Cairo\_jll ✗ HarfBuzz\_jll ✗ libass\_jll ✗ FFMPEG…

---

## [Exporting figures to static HTML](https://discourse.julialang.org/t/exporting-figures-to-static-html/125896)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 31\
**Last updated:** [March 1, 2025, 11:48am UTC](https://discourse.julialang.org/t/exporting-figures-to-static-html/125896 "2025-03-01T11:48:57Z")

</div>

Hi! I am trying to embed my makie plots as html files in my github pages website which uses jekyll. I found this blog post which explains how it can be done: using Julia to do web based interactive plotting | Aaron Tro…

---

## [Alternatives for parallel programming with nvidia cards with CUDA versions lower than 9-10](https://discourse.julialang.org/t/alternatives-for-parallel-programming-with-nvidia-cards-with-cuda-versions-lower-than-9-10/118345)

<div class="topic-metadata">

**Author:** [@Alex\_73](https://discourse.julialang.org/u/Alex_73)\
**Replies:** 0\
**Last updated:** [August 18, 2024, 8:36pm UTC](https://discourse.julialang.org/t/alternatives-for-parallel-programming-with-nvidia-cards-with-cuda-versions-lower-than-9-10/118345 "2024-08-18T20:36:43Z")

</div>

I’m starting to study parallel programming and would like to use the nvidia drivers. In my case, I have a GeForce 820M video card with drivers 390.157, the latest for this hardware. I also tried to install the CUDA versi…

---

## [Enzyme - Incorrect (?) Forward results on function that returns a literal value within a tuple](https://discourse.julialang.org/t/enzyme-incorrect-forward-results-on-function-that-returns-a-literal-value-within-a-tuple/126443)

<div class="topic-metadata">

**Author:** [@jl\_enthusiast](https://discourse.julialang.org/u/jl_enthusiast)\
**Replies:** 3\
**Last updated:** [March 1, 2025, 2:35am UTC](https://discourse.julialang.org/t/enzyme-incorrect-forward-results-on-function-that-returns-a-literal-value-within-a-tuple/126443 "2025-03-01T02:35:45Z")

</div>

The issue can be reduced to the following semi-MWE: Consider a function that return a literal number, and some vector(s): using Enzyme function tester(x::AbstractVector{T}) where T return (T(pi), sum(x), x.^2) end…

---

## [Getting unbounded ray in JuMP](https://discourse.julialang.org/t/getting-unbounded-ray-in-jump/126097)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 5\
**Last updated:** [February 28, 2025, 6:33pm UTC](https://discourse.julialang.org/t/getting-unbounded-ray-in-jump/126097 "2025-02-28T18:33:29Z")

</div>

I have an unbounded linear program that I am solving using Gurobi with the attribute: set\_attribute(model, "InfUnbdInfo", 1) set\_attribute(model, "DualReductions", 0) and the model is indeed unbounded. I want to get …

---

## [Solving a matrix least-squares with LinearSolve.jl](https://discourse.julialang.org/t/solving-a-matrix-least-squares-with-linearsolve-jl/126367)

<div class="topic-metadata">

**Author:** [@smallpondtom](https://discourse.julialang.org/u/smallpondtom)\
**Replies:** 2\
**Last updated:** [February 28, 2025, 2:28pm UTC](https://discourse.julialang.org/t/solving-a-matrix-least-squares-with-linearsolve-jl/126367 "2025-02-28T14:28:51Z")

</div>

Hi. I’ve been trying out LinearSolve.jl for a bit, and I happened to notice that this package is generally for \\min \\| \\mathbf{Ax} - \\mathbf{b} \\|\_2^2 where \\mathbf{b},\\mathbf{x} are vectors. My problem, on the other…

---

## [Resetting some states in a batch in Lux.jl recurrent layers](https://discourse.julialang.org/t/resetting-some-states-in-a-batch-in-lux-jl-recurrent-layers/126402)

<div class="topic-metadata">

**Author:** [@emiwar](https://discourse.julialang.org/u/emiwar)\
**Replies:** 0\
**Last updated:** [February 27, 2025, 11:47pm UTC](https://discourse.julialang.org/t/resetting-some-states-in-a-batch-in-lux-jl-recurrent-layers/126402 "2025-02-27T23:47:52Z")

</div>

Hi, I’m writing a Deep RL (PPO) implementation using Lux.jl and want to add support for recurrent networks. My issue is that I have a batch of environments and at every time step some of them may reset due to the agent …

---

## [JuMP solve\_time not matching actual time](https://discourse.julialang.org/t/jump-solve-time-not-matching-actual-time/126397)

<div class="topic-metadata">

**Author:** [@BMI\_OR](https://discourse.julialang.org/u/BMI_OR)\
**Replies:** 3\
**Last updated:** [February 27, 2025, 9:33pm UTC](https://discourse.julialang.org/t/jump-solve-time-not-matching-actual-time/126397 "2025-02-27T21:33:40Z")

</div>

I am executing an algorithm that iteratively executes the following function to solve a problem: function solve\_subproblem(model, z, q, v) fix.(model\[:z\_copy\], z) fix.(model\[:q\_copy\], q) fix.(model\[:v\_copy\],…

---

## [Implementing a ConvNet that doesn't allocate during inference (SimpleChains.jl?)](https://discourse.julialang.org/t/implementing-a-convnet-that-doesnt-allocate-during-inference-simplechains-jl/126365)

<div class="topic-metadata">

**Author:** [@sefffal](https://discourse.julialang.org/u/sefffal)\
**Replies:** 3\
**Last updated:** [February 27, 2025, 5:24pm UTC](https://discourse.julialang.org/t/implementing-a-convnet-that-doesnt-allocate-during-inference-simplechains-jl/126365 "2025-02-27T17:24:57Z")

</div>

Hi all, Myself and a student are trying to implement a simple, relatively small convolutional neural network. The trick is, we need it to run as part of our existing real time controller (implemented in Julia, see Case …

---

## [Solver does not return solution with ALMOST\_OPTIMAL status](https://discourse.julialang.org/t/solver-does-not-return-solution-with-almost-optimal-status/126280)

<div class="topic-metadata">

**Author:** [@priantop](https://discourse.julialang.org/u/priantop)\
**Replies:** 3\
**Last updated:** [February 27, 2025, 9:53am UTC](https://discourse.julialang.org/t/solver-does-not-return-solution-with-almost-optimal-status/126280 "2025-02-27T09:53:13Z")

</div>

Hi, I am running a large LP model using COPT solver (COPT.jl) where the termination status is IMPRECISE, below is the log snippet Using Cardinal Optimizer v7.2.4 on Windows Hardware has 32 cores and 64 threads. Using …

---

## [PowerModels Timeseries Simulation](https://discourse.julialang.org/t/powermodels-timeseries-simulation/122615)

<div class="topic-metadata">

**Author:** [@PB-vines](https://discourse.julialang.org/u/PB-vines)\
**Replies:** 5\
**Last updated:** [February 27, 2025, 5:55am UTC](https://discourse.julialang.org/t/powermodels-timeseries-simulation/122615 "2025-02-27T05:55:20Z")

</div>

Hello, I am new to PowerModels and looking forward to learning more. I have a power network, along with generation data and renewable energy resource data. I want to run this grid for at least 1 day at hourly intervals…

---

## [JuMP / SCS tutorial example fails on simple(?) data](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 5\
**Last updated:** [February 26, 2025, 8:40pm UTC](https://discourse.julialang.org/t/jump-scs-tutorial-example-fails-on-simple-data/125857 "2025-02-26T20:40:44Z")

</div>

Using the code verbatim as provided in the JuMP conic programming tutorial the SCS solver fails after 100,000 iterations on the matrix of five 2-D points below julia\> S 5×2 Matrix{Float64}: 39.1 18.7 39.5 17.4 40.…

---

## [Dual to PSD Constraint in JuMP](https://discourse.julialang.org/t/dual-to-psd-constraint-in-jump/126352)

<div class="topic-metadata">

**Author:** [@lopenguin](https://discourse.julialang.org/u/lopenguin)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 7:42pm UTC](https://discourse.julialang.org/t/dual-to-psd-constraint-in-jump/126352 "2025-02-26T19:42:46Z")

</div>

Hi all, This is my first forum post so feedback is welcome. In summary, finding the dual to a PSD constraint in JuMP is not particularly intuitive and certainly not well-documented. I show the approach that worked for m…

---

## [Bad interaction of Metal.jl and PyPlot on julia 1.11.2](https://discourse.julialang.org/t/bad-interaction-of-metal-jl-and-pyplot-on-julia-1-11-2/123759)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 6:01pm UTC](https://discourse.julialang.org/t/bad-interaction-of-metal-jl-and-pyplot-on-julia-1-11-2/123759 "2025-02-26T18:01:09Z")

</div>

Dearests, Still fighting to test the GPU on my new macbook pro M4. Fresh new environment on version 1.11.2 (TEST\_PYPLOT) pkg\> add Metal, PyPlot (TEST\_PYPLOT) pkg\> add Metal, PyPlot Resolving package versions... …

---

## [Customised Objective Function using PMD.jl](https://discourse.julialang.org/t/customised-objective-function-using-pmd-jl/126253)

<div class="topic-metadata">

**Author:** [@alireza33zz](https://discourse.julialang.org/u/alireza33zz)\
**Replies:** 2\
**Last updated:** [February 26, 2025, 5:58pm UTC](https://discourse.julialang.org/t/customised-objective-function-using-pmd-jl/126253 "2025-02-26T17:58:28Z")

</div>

Hello I am using PowerModelsDistribution.jl to solve my 3-phase OPF, how can I only change the objective function? By default it is the minimization of fuel cost, I want to replace it with a non-linear function. Thanks…

---

## [CPU time vs Wallclock](https://discourse.julialang.org/t/cpu-time-vs-wallclock/114776)

<div class="topic-metadata">

**Author:** [@ShGE](https://discourse.julialang.org/u/ShGE)\
**Replies:** 11\
**Last updated:** [February 26, 2025, 5:41pm UTC](https://discourse.julialang.org/t/cpu-time-vs-wallclock/114776 "2025-02-26T17:41:07Z")

</div>

Hello there solve\_time does not return the CPU time even if I set set\_optimizer\_attribute(model, “CPXPARAM\_ClockType”, 1) # CPU clock time when using CPLEX. is there any way to get CPU time in Jump from whatever s…

---

## [Implicit differentiation of rootfinding problem (w/ numerical issues)](https://discourse.julialang.org/t/implicit-differentiation-of-rootfinding-problem-w-numerical-issues/126293)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 13\
**Last updated:** [February 26, 2025, 3:01pm UTC](https://discourse.julialang.org/t/implicit-differentiation-of-rootfinding-problem-w-numerical-issues/126293 "2025-02-26T15:01:40Z")

</div>

I have written an algorithm that solves x = \\log\\left( \\sum\_i \\exp(a\_i + z\_i y) \\right) for y given x, a\_i, z\_i. It uses Newton’s method, which is the trivial part, the difficulty was getting a cheap but reasonable in…

---

## [A time-indexed MILP model for tje job shop with makespan minimization](https://discourse.julialang.org/t/a-time-indexed-milp-model-for-tje-job-shop-with-makespan-minimization/126297)

<div class="topic-metadata">

**Author:** [@baprata](https://discourse.julialang.org/u/baprata)\
**Replies:** 2\
**Last updated:** [February 26, 2025, 10:32am UTC](https://discourse.julialang.org/t/a-time-indexed-milp-model-for-tje-job-shop-with-makespan-minimization/126297 "2025-02-26T10:32:13Z")

</div>

Dear colleagues, I am coding the time-indexed model for the job shop scheduling problem as presented by Hu and Beck (Equations (10)-(15) in Redirecting), but the solution is not correct. I successfully implemented all t…

---

## [Displaying text values of ABMObservable in Agents.jl](https://discourse.julialang.org/t/displaying-text-values-of-abmobservable-in-agents-jl/126322)

<div class="topic-metadata">

**Author:** [@ultradian](https://discourse.julialang.org/u/ultradian)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 5:57am UTC](https://discourse.julialang.org/t/displaying-text-values-of-abmobservable-in-agents-jl/126322 "2025-02-26T05:57:53Z")

</div>

I want to add display of text values and statistics in an interactive Agents model, but I can’t get it to work. As an example, if we start with the Schelling model from the Tutorial: using Agents using GLMakie space = …

---

## [New Package: EISAnalysis.jl](https://discourse.julialang.org/t/new-package-eisanalysis-jl/126319)

<div class="topic-metadata">

**Author:** [@bdamerau](https://discourse.julialang.org/u/bdamerau)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 12:58am UTC](https://discourse.julialang.org/t/new-package-eisanalysis-jl/126319 "2025-02-26T00:58:53Z")

</div>

Hi All! I’m relatively new to Julia, and I’m in the process of registering a new package, EISAnalysis.jl. The purpose is to introduce an easy syntax for generating and fitting circuit models via REPL. Specifically it is…

---

## [Juniper Boolean variable example with MTK](https://discourse.julialang.org/t/juniper-boolean-variable-example-with-mtk/126144)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 3\
**Last updated:** [February 25, 2025, 7:31pm UTC](https://discourse.julialang.org/t/juniper-boolean-variable-example-with-mtk/126144 "2025-02-25T19:31:42Z")

</div>

I want to reproduce the Juniper README example (with Binary variable and nonlinear non-convex objective). It has been done with JuMP.jl, with Optimization.jl (here). But I cannot reproduce it using ModelingToolKit.jl I…

---

## [Is there anything like vmap to vectorize a computation](https://discourse.julialang.org/t/is-there-anything-like-vmap-to-vectorize-a-computation/126288)

<div class="topic-metadata">

**Author:** [@Leander](https://discourse.julialang.org/u/Leander)\
**Replies:** 10\
**Last updated:** [February 25, 2025, 6:48pm UTC](https://discourse.julialang.org/t/is-there-anything-like-vmap-to-vectorize-a-computation/126288 "2025-02-25T18:48:42Z")

</div>

I want to evaluate using julia for a project and so far it was straightforward. The setting is the following, I have a bunch of functions (moment-generating functions over different parameters), for which I want to compu…

---

## [CUDNN in Julia](https://discourse.julialang.org/t/cudnn-in-julia/84330)

<div class="topic-metadata">

**Author:** [@Jonas208](https://discourse.julialang.org/u/Jonas208)\
**Replies:** 6\
**Last updated:** [February 25, 2025, 5:05pm UTC](https://discourse.julialang.org/t/cudnn-in-julia/84330 "2025-02-25T17:05:17Z")

</div>

Is there any way - or what is the best way - to use CUDNN in Julia? Details: I am interested in that topic because I want do add GPU-acceleration (Nvidia) to my own little Deep Learning module (it is not available anyw…

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=54)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=56)
