Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When running Pluto on a compute server, default the number of threads to the number of cpu's #8024

Open
williamstein opened this issue Nov 15, 2024 · 0 comments
Labels
A-compute_server A-julia Anything involving JuliaLang

Comments

@williamstein
Copy link
Contributor

This is a reasonable default given that compute servers are dedicated to running Julia.

The script that supervisorctl runs is: /cocalc/apps/pluto.sh

I would try editing it to specify JULIA_NUM_THREADS, then supervisorctl restart pluto

(compute-server-2) ~$ more /cocalc/apps/pluto.sh 
#!/usr/bin/env bash

. /cocalc/start-env.sh

set +e

which julia

if [ $? -ne 0 ]; then
    echo "You must install Julia"
    exit 1
fi

echo 'import Pluto' | julia 2>&1 | grep -q 'not found'

if [ $? -eq 0 ]; then
    echo "Installing Pluto"
    echo 'using Pkg; Pkg.add("Pluto");' | julia
fi

set -ev
echo 'import Pluto; Pluto.run(launch_browser=false, require_secret_for_access=false, port='$PORT')' | julia
@williamstein williamstein added A-julia Anything involving JuliaLang A-compute_server labels Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compute_server A-julia Anything involving JuliaLang
Projects
None yet
Development

No branches or pull requests

1 participant