-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- tools/expand.py can take input/output files as arguments (for meson) - tools/expand.py handles the C++ string wrapping - drop int128 use
- Loading branch information
Showing
9 changed files
with
78 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# -*- mode:Python -*- | ||
|
||
project('gpuowl', 'cpp', default_options:['cpp_std=c++17', 'buildtype=debugoptimized']) | ||
|
||
vcs_tag(input:'version.inc.in', output:'version.inc') | ||
|
||
python3 = import('python').find_installation('python3') | ||
expander = find_program('./tools/expand.py') | ||
|
||
wrap = generator(expander, output:'@[email protected]', arguments:['@INPUT@', '@OUTPUT@']) | ||
|
||
gpuowl_wrap = wrap.process('gpuowl.cl') | ||
|
||
srcs = 'ProofCache.cpp Proof.cpp Pm1Plan.cpp B1Accumulator.cpp Memlock.cpp log.cpp md5.cpp sha3.cpp AllocTrac.cpp GmpUtil.cpp FFTConfig.cpp Worktodo.cpp common.cpp main.cpp Gpu.cpp clwrap.cpp Task.cpp Saver.cpp timeutil.cpp Args.cpp state.cpp Signal.cpp'.split() | ||
|
||
cpp = meson.get_compiler('cpp') | ||
amdocl = cpp.find_library('amdocl64', dirs:['/opt/rocm-3.3.0/opencl/lib/x86_64', '/opt/rocm-5.1.1/opencl/lib', '/opt/rocm/opencl/lib']) | ||
|
||
|
||
executable('gpuowl', sources: srcs + [gpuowl_wrap], dependencies:[amdocl, dependency('gmp')]) | ||
|
||
|
||
# Meson experiments below: | ||
|
||
#executable('gpuowl', sources:srcs, link_with:[amdocl, dependency('gmp')]) | ||
# amdocl = declare_dependency(link_args : ['-L/opt/rocm-3.3.0/opencl/lib/x86_64', '-lamdocl64']) | ||
# dependency('amdocl64') | ||
# thread_dep = dependency('threads') | ||
# gpuowl_wrap = custom_target('gpuowl_wrap', command:[python3, '@INPUT@', '@OUTPUT@'], input:['tools/expand.py', 'gpuowl.cl'], output:'gpuowl-wrap.cpp') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"@VCS_TAG@" |