You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: