File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ using CxxWrap
33using Scratch
44
55const libpoplar_dir = joinpath (@get_scratch! (" libpoplar" ), " v$(Base. thispatch (VERSION )) " )
6- const libpoplar = joinpath (libpoplar_dir, " libpoplar_julia.so" )
6+ get_libpoplar_path () = joinpath (libpoplar_dir, " libpoplar_julia.so" )
77
88export @graph
99
@@ -74,11 +74,12 @@ struct VertexPerfEstimate
7474 new (UInt64 (cycles), UInt64 (flops))
7575end
7676
77- @wrapmodule (libpoplar )
77+ @wrapmodule (get_libpoplar_path )
7878
7979const SDK_VERSION = VersionNumber (match (r" [\d .]+" , String (Poplar. getVersionString ())). match)
8080
8181function __init__ ()
82+ libpoplar = get_libpoplar_path ()
8283 if ! isfile (libpoplar)
8384 error ("""
8485 `$(basename (libpoplar)) ` expected to exist at path `$(libpoplar) `, but could not be found.
You can’t perform that action at this time.
0 commit comments