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

Edits for code_skeleton branch in amanabt/DG_Maxwell #9

Open
Balavarun5 opened this issue Aug 16, 2017 · 1 comment
Open

Edits for code_skeleton branch in amanabt/DG_Maxwell #9

Balavarun5 opened this issue Aug 16, 2017 · 1 comment

Comments

@Balavarun5
Copy link
Contributor

The command 'af.set_backend(sys.argv[1])' gives an error while execution. Setting backend to opencl solves this. The test_waveEqn should contain tests for only the basic functions. eg:- A matrix is different for 2D case and hence the test written for 1D can't be used.

@amanabt amanabt added this to the 1D Wave equation solver. milestone Aug 17, 2017
@amanabt
Copy link
Member

amanabt commented Aug 17, 2017

Sorry, I forgot to explain you the change.
Initially, we were doing af.set_backend in all the files wherever we were importing arrayfire.
The problem was that when we wanted to change the backend, we were bound to change it
in all the files. To get around this issue I started taking command line arguments.

So, you were supposed to run the program like this:

python3 main.py <backend>

Here, sys.argv[1] will store the backend you will enter while executing the program.

This was, however, a temporary solution and we cannot keep doing this because we are building
a library and so, we cannot take command line arguments.

@amanabt amanabt closed this as completed Aug 17, 2017
@amanabt amanabt reopened this Aug 17, 2017
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

No branches or pull requests

2 participants