Skip to content

Commit b9536ed

Browse files
authored
Bug fixes in README (#9)
Also added storage folder.
1 parent 9410354 commit b9536ed

File tree

4 files changed

+16
-14
lines changed

4 files changed

+16
-14
lines changed

.codecov.yml

-1
This file was deleted.

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.vscode/
2-
src/transform/storage/
32
Manifest.toml

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -456,13 +456,13 @@ SourceCodeMcCormick generated functions, we can make use of the massive parallel
456456
available using GPUs.
457457

458458
```julia
459-
using JuMP, EAGO, SourceCodeMcCormick, CUDA
459+
using JuMP, EAGO, SourceCodeMcCormick, Symbolics, DocStringExtensions CUDA
460460

461-
# Import the ParBB algorithm (Note: path may vary depending on where
462-
# this file is in relation to SourceCodeMcCormick)
463-
include(joinpath(@__DIR__, "ParBB", "extension.jl"))
464-
include(joinpath(@__DIR__, "ParBB", "subroutines.jl"))
465-
include(joinpath(@__DIR__, "ParBB", "kernels.jl"))
461+
# Import the ParBB algorithm
462+
BASE_FOLDER = dirname(dirname(pathof(SourceCodeMcCormick)))
463+
include(joinpath(BASE_FOLDER, "examples", "ParBB", "extension.jl"))
464+
include(joinpath(BASE_FOLDER, "examples", "ParBB", "subroutines.jl"))
465+
include(joinpath(BASE_FOLDER, "examples", "ParBB", "kernels.jl"))
466466

467467
# Weights associated with the hidden layer
468468
W1 = [ 0.54 -1.97 0.09 -2.14 1.01 -0.58 0.45 0.26;
@@ -595,13 +595,13 @@ implementation. The following shows how SourceCodeMcCormick's new subgradient fe
595595
with ParBB.
596596

597597
```julia
598-
using JuMP, EAGO, SourceCodeMcCormick, CUDA
598+
using JuMP, EAGO, SourceCodeMcCormick, Symbolics, DocStringExtensions, CUDA
599599

600-
# Import the ParBB algorithm (Note: path may vary depending on where
601-
# this file is in relation to SourceCodeMcCormick)
602-
include(joinpath(@__DIR__, "ParBB", "extension.jl"))
603-
include(joinpath(@__DIR__, "ParBB", "subroutines.jl"))
604-
include(joinpath(@__DIR__, "ParBB", "kernels.jl"))
600+
# Import the ParBB algorithm
601+
BASE_FOLDER = dirname(dirname(pathof(SourceCodeMcCormick)))
602+
include(joinpath(BASE_FOLDER, "examples", "ParBB", "extension.jl"))
603+
include(joinpath(BASE_FOLDER, "examples", "ParBB", "subroutines.jl"))
604+
include(joinpath(BASE_FOLDER, "examples", "ParBB", "kernels.jl"))
605605

606606
# Weights associated with the hidden layer
607607
W1 = [ 0.54 -1.97 0.09 -2.14 1.01 -0.58 0.45 0.26;

src/transform/storage/.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ignore everything in this directory
2+
*
3+
# Except this file
4+
!.gitignore

0 commit comments

Comments
 (0)