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

Ubuntu ispc compile .so file fail #4

Open
DylanTao opened this issue May 11, 2024 · 0 comments
Open

Ubuntu ispc compile .so file fail #4

DylanTao opened this issue May 11, 2024 · 0 comments

Comments

@DylanTao
Copy link
Contributor

On my Ubuntu, all the parallel_add/copy/reduce tests will only produce a temporary file like "parallel_add.so.o", which will cause an error. However, it will pass all the parallel tests if I can target "c" in the hw3/test.py file, producing the parallel_add.so file. I suspect some additional compiler line or flag is needed, but I am not sure how to fix it.

======================================================================
ERROR: test_parallel_add (main.Homework3Test.test_parallel_add)

Traceback (most recent call last):
File "/home/stao/dev/loma_public/hw_tests/hw3/test.py", line 405, in test_parallel_add
structs, lib = compiler.compile(f.read(),
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stao/dev/loma_public/compiler.py", line 355, in compile
lib = CDLL(os.path.join(os.getcwd(), output_filename))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/stao/anaconda3/envs/loma/lib/python3.11/ctypes/init.py", line 376, in init
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/stao/dev/loma_public/hw_tests/hw3/_code/parallel_add.so: cannot open shared object file: No such file or directory


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

1 participant