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

example run issue. #20

Closed
Tortoise17 opened this issue Apr 23, 2019 · 17 comments
Closed

example run issue. #20

Tortoise17 opened this issue Apr 23, 2019 · 17 comments

Comments

@Tortoise17
Copy link

Dear Friends.

I have just executed the example and the kernel is dying at this step.

receiver_amplitudes = prop(source_amplitudes, x_s, x_r, dt)

I am using python 3.6.8 and pytorch 1.0.0
can anyone guide what the issue can be? I am not using any CUDA. Only CPU based cluster.

Greetings.

@ar4
Copy link
Owner

ar4 commented Apr 23, 2019

Dear Friend,

Which of the examples are you trying to run? I suspect that you might be running out of memory. Can you try reducing the size of the model to see if that helps?

@Tortoise17
Copy link
Author

Friend and Brother. !!

Memory already available is 16 GB. 24 cores machine. at the moment 12 GB free memory is still availeble.

https://pypi.org/project/deepwave/

The starting example given here I am trying to get familiar with this library and modeling.

If you can guide how much minimum memory should I have. or if I am making some nasty mistake?
Thank you so much for kind helping support.

Greetings.

@ar4
Copy link
Owner

ar4 commented Apr 23, 2019

I have just tried executing the example on a CPU and it ran successfully:
https://colab.research.google.com/drive/1MQw5gAFblBNAky5gRdbFcrlwGkGIyl3W

This CPU only had 12GB of RAM, so 16GB should certainly be sufficient for this small example. Do the steps look the same as the ones that you followed? pip install deepwave and then executing the code?

@ar4
Copy link
Owner

ar4 commented Apr 23, 2019

If it is still not working, one possible source of problems is the large number of cores you have. I have not tested it on a machine with that many cores. The CPU version of the code uses OpenMP to parallelize over cores within a node. To check if this is causing a problem, you could try setting the environmental variable OMP_NUM_THREADS to 1.

@Tortoise17
Copy link
Author

Tortoise17 commented Apr 23, 2019

Dear Brother,

I found your tool interested for seismic inversion learning. Let me see .. !! I will update you shortly. Still I am working on it.

@ar4
Copy link
Owner

ar4 commented May 1, 2019

Did you manage to get it running?

@Tortoise17
Copy link
Author

HI.
Sorry, I tried this way, and still kernel is dying. with one thread usage. I have to test on small machine to see if something works. I will update you until weekend.

Greetings.

@ar4
Copy link
Owner

ar4 commented May 24, 2019

Hi,

Thank you for your continued efforts to use the code, and I am very sorry that you are experiencing difficulty. I have not managed to reproduce the kernel dying issue on any of the systems that I have tested, so unfortunately I do not know what to suggest. Please let me know if you discover any new information that might enable me to help you.

@Tortoise17
Copy link
Author

HI.

Thank you so much .. no issue. no worries. I will fix it soon and will share my experience. I would like to ask that are there any plans for the extension in 3D?

Greetings.

Khawar

@ar4
Copy link
Owner

ar4 commented May 24, 2019

Hi Khawar,

Thank you for offering to share your experiences. I am sure they will be valuable for others.

The code should already run in 3D, but unfortunately it will only work for small models as it will probably run out of memory for larger models. I am very busy with other projects at the moment, so cannot dedicate the time to improve this. If you or someone else would like to write the code to improve it, I may be able to help.

@Tortoise17
Copy link
Author

Dear Great Friend. That is super perfect. I will have a look how to cope with memory issue and will share my experience with 3D and will make some effort to use it for the larger 3D models.

Just one question. This BIN format for the loading is special format or its from netcdf?

Greetings.

@ar4
Copy link
Owner

ar4 commented May 24, 2019

The model file that I use in the example is a plain 32-bit floating point binary file. The code expects a PyTorch Tensor as input - in the example I simply load the binary file using NumPy and then convert it to a Tensor before passing it to Deepwave.

@Tortoise17
Copy link
Author

so simply the standard segy has been converted to binary? by using numpy or segyio can be used for deep wave or any guide?

@ar4
Copy link
Owner

ar4 commented May 24, 2019

Yes, as long as the input to Deepwave is a PyTorch Tensor, it does not matter where that Tensor came from.

@vahid-honarbakhsh
Copy link

vahid-honarbakhsh commented Jun 17, 2019

Dear Friends.

When I run ' pip install deepwave' , I observe this errors :

c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(57): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(57): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(57): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(58): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(58): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(59): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(59): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(60): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(60): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(60): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(61): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(61): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(61): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(62): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(62): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(63): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(63): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(63): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(64): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(64): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(64): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(65): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(65): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(66): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(66): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(66): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(67): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(67): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(67): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(68): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(68): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(56): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(81): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(81): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(82): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(82): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(82): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(83): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(83): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(83): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(84): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(84): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(84): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(85): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(85): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(85): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(86): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(86): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(86): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(87): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(87): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(87): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(88): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(88): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(88): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(89): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(89): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(89): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(90): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(90): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(91): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(91): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(91): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(92): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(92): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(93): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(93): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(93): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(94): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(94): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(95): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(95): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(80): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(95): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(150): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(150): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(150): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(151): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(151): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(151): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(152): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(152): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(152): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(153): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(153): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(153): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(154): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(154): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(154): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(155): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(155): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(155): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(156): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(156): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(156): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(157): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(157): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(157): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(158): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(158): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(158): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(159): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(159): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(159): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(160): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(160): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(160): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(161): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(161): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(161): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(162): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(162): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(162): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(163): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(163): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(149): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(163): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(168): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar.h(168): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(6): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(6): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(7): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(7): error C2086: 'const float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(6): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(7): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(8): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(8): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(9): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(9): error C2086: 'float *restrict': redefinition
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(8): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(9): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(10): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(10): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(8): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(10): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(11): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(11): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(8): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(11): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(12): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(12): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(8): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(13): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(13): error C2373: 'restrict': redefinition; different type modifiers
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(8): note: see declaration of 'restrict'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(13): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(14): error C2143: syntax error: missing ',' before 'const'
c:\users\omen\appdata\local\temp\pip-install-h9i1pg1n\deepwave\deepwave\scalar\scalar_device.h(14): fatal error C1003: error count exceeds 100; stopping compilation
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe' failed with exit status 2

----------------------------------------

Command ""c:\program files\python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\OMEN\AppData\Local\Temp\pip-install-h9i1pg1n\deepwave\setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record C:\Users\OMEN\AppData\Local\Temp\pip-record-ibq1rxt_\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\OMEN\AppData\Local\Temp\pip-install-h9i1pg1n\deepwave\

PLease help me that install deepwave

Greetings

@ar4
Copy link
Owner

ar4 commented Jun 17, 2019 via email

ar4 added a commit that referenced this issue Jan 15, 2020
Visual Studio does not support the __restrict__ keyword, but
GCC, Clang, and Visual Studio apparently all support __restrict,
so I have replaced all of the former with the latter. This will
hopefully address errors reported by users in Issues #20 and #22.
@ar4
Copy link
Owner

ar4 commented Jan 15, 2020

Dear Friends,

I have modified the code to change __restrict__ to __restrict. The latter is apparently supported by more compilers, so it might resolve the problem you reported. This change is incorporated in release v0.0.7. To update to this version, run pip install -U deepwave.

-Alan

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

3 participants