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

package_spec.split breaks multi-element flag definitions #436

Closed
jdomke opened this issue Mar 9, 2024 · 0 comments · Fixed by #437
Closed

package_spec.split breaks multi-element flag definitions #436

jdomke opened this issue Mar 9, 2024 · 0 comments · Fixed by #437
Assignees

Comments

@jdomke
Copy link

jdomke commented Mar 9, 2024

loc_args.extend(package_spec.split())

and
name_args.extend(package_spec.split())

and
name = os.path.join(package_spec.split()[0])

and
location = os.path.join('dry-run', 'path', 'to', package_spec.split()[0])

==> package_spec: [email protected] +openmp stream_array_size=80000000 ntimes=20 cflags="-mcmodel=large -Ofast" %[email protected]
==> ['location', '-i', '[email protected]', '+openmp', 'stream_array_size=80000000', 'ntimes=20', 'cflags="-mcmodel=large', '-Ofast"', '%[email protected]']
==> ['find', '--format={name}', '[email protected]', '+openmp', 'stream_array_size=80000000', 'ntimes=20', 'cflags="-mcmodel=large', '-Ofast"', '%[email protected]']
==> 
==> *******************************************
==> ********** Running Spack Command **********
==> **     command: /vol0005/mdt3/data/ra000020/u10016/benchpark.fj/test.fj/spack/bin/spack
==> **     with args: ['find', '--format={name}', '[email protected]', '+openmp', 'stream_array_size=80000000', 'ntimes=20', 'cflags="-mcmodel=large', '-Ofast"', '%[email protected]']
==> *******************************************
==> 
==> Error: unexpected tokens in the spec string
[email protected] +openmp stream_array_size=80000000 ntimes=20 cflags='"-mcmodel=large' -Ofast" %[email protected]
                                                                                        ^^         
==> Error: Command exited with status 3:
    '/vol0005/mdt3/data/ra000020/u10016/benchpark.fj/test.fj/spack/bin/spack' 'find' '--format={name}' '[email protected]' '+openmp' 'stream_array_size=80000000' 'ntimes=20' 'cflags="-mcmodel=large' '-Ofast"' '%[email protected]'

split() breaks down cflags="-mcmodel=large -Ofast" which results in the error above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants