Skip to content

Commit

Permalink
test deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfougeron committed May 9, 2024
1 parent 716394f commit b40426c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
3 changes: 2 additions & 1 deletion choreo/find_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def Find_Choreo(
NBS.fftw_nthreads = fftw_nthreads
NBS.fft_backend = fft_backend

nint_fac_init = 128
# nint_fac_init = 128

NBS.nint_fac = nint_fac_init

Expand Down Expand Up @@ -906,6 +906,7 @@ def load_target_files(filename, Workspace_folder, target_speed):

n_reconverge_it_max = params_dict["Solver_Discr"] ['n_reconverge_it_max']
nint_init = params_dict["Solver_Discr"]["nint_init"]
nint_fac_init = nint_init

disp_scipy_opt = (params_dict['Solver_Optim'] ['optim_verbose_lvl'] == "full")
# disp_scipy_opt = False
Expand Down
2 changes: 1 addition & 1 deletion choreo_GUI/anim.js
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ function canvasApp() {
trailLayerContext.beginPath()
trailLayerContext.moveTo(Pixx, Pixy)

for (i_pos = 1 ; i_pos < segm_size ; i_pos++){
for (i_pos = 1 ; i_pos < segm_store ; i_pos++){

// Super ugly
xl = Pos.data[ io + 2*i_pos ]
Expand Down
24 changes: 12 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@

if ("PYODIDE" in os.environ): # Building for Pyodide

extra_compile_args_std = ["-O0", *ignore_warnings_args]
extra_compile_args_safe = ["-O0", *ignore_warnings_args]
extra_link_args = []
# extra_compile_args_std = ["-O0", *ignore_warnings_args]
# extra_compile_args_safe = ["-O0", *ignore_warnings_args]
# extra_link_args = []

# extra_compile_args_std = ["-O3","-ffast-math","-flto", *ignore_warnings_args]
# extra_compile_args_safe = ["-O3","-flto", *ignore_warnings_args]
# extra_link_args = ["-flto", ]
extra_compile_args_std = ["-O3","-ffast-math","-flto", *ignore_warnings_args]
extra_compile_args_safe = ["-O3","-flto", *ignore_warnings_args]
extra_link_args = ["-flto", ]

else:

Expand All @@ -94,13 +94,13 @@

break

extra_compile_args_std = ["-O0","-march=native", "-fopenmp", "-lm", *ignore_warnings_args]
extra_compile_args_safe = ["-O0", "-fopenmp", "-lm", *ignore_warnings_args]
extra_link_args = ["-fopenmp", "-lm",]
# extra_compile_args_std = ["-O0","-march=native", "-fopenmp", "-lm", *ignore_warnings_args]
# extra_compile_args_safe = ["-O0", "-fopenmp", "-lm", *ignore_warnings_args]
# extra_link_args = ["-fopenmp", "-lm",]

# extra_compile_args_std = ["-Ofast", "-march=native", "-fopenmp", "-lm", "-flto", *ignore_warnings_args]
# extra_compile_args_safe = ["-O3", "-fopenmp", "-lm", "-flto", *ignore_warnings_args]
# extra_link_args = ["-fopenmp", "-lm", "-flto", *ignore_warnings_args]
extra_compile_args_std = ["-Ofast", "-march=native", "-fopenmp", "-lm", "-flto", *ignore_warnings_args]
extra_compile_args_safe = ["-O3", "-fopenmp", "-lm", "-flto", *ignore_warnings_args]
extra_link_args = ["-fopenmp", "-lm", "-flto", *ignore_warnings_args]

cython_extnames.append("choreo.cython.funs_parallel")
cython_safemath_needed.append(False)
Expand Down

0 comments on commit b40426c

Please sign in to comment.