Skip to content

Ensure OpenCL runtime and subprocess fallback#200

Merged
slarson merged 1 commit into
ow-pytorch-0.0.1from
codex/investigate-worm_motion-log-file-issue
Jun 29, 2025
Merged

Ensure OpenCL runtime and subprocess fallback#200
slarson merged 1 commit into
ow-pytorch-0.0.1from
codex/investigate-worm_motion-log-file-issue

Conversation

@slarson
Copy link
Copy Markdown
Member

@slarson slarson commented Jun 29, 2025

Summary

  • warn if pyneuroml missing rather than aborting tests
  • install a CPU OpenCL driver in setup.sh
  • make sibernetic_c302.py fall back to subprocess when pyneuroml isn't available

Testing

  • make -j$(nproc)
  • ./run_all_tests.sh
  • ./test.sh

https://chatgpt.com/codex/tasks/task_b_686185d49764832a8c117a5c2869496a

@slarson slarson requested a review from Copilot June 29, 2025 22:11
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the robustness of the simulation startup by warning if pyneuroml is not installed and providing a subprocess fallback to run commands. It also installs a CPU OpenCL driver in setup.sh and updates the test runner to warn about the missing module.

  • In sibernetic_c302.py, the simulation command execution is modified to fall back to subprocess when pynml is unavailable.
  • In setup.sh, additional OpenCL packages are added and pyneuroml installation is verified with a warning on failure.
  • In run_all_tests.sh, the PYTHONPATH is updated more robustly and a warning is added if pyneuroml is missing.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
sibernetic_c302.py Adds subprocess fallback to command execution when pyneuroml is absent.
setup.sh Installs additional OpenCL driver packages and verifies pyneuroml installation.
run_all_tests.sh Updates PYTHONPATH computation and adds a warning for missing pyneuroml.

Comment thread sibernetic_c302.py
if res.returncode == 0:
completion_status = SUCCESS
else:
sys.stderr.write(res.stderr.decode())
Copy link

Copilot AI Jun 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using the existing print_ function for error output in the subprocess fallback branch to ensure consistent logging format with the rest of the application.

Suggested change
sys.stderr.write(res.stderr.decode())
print_(res.stderr.decode())

Copilot uses AI. Check for mistakes.
@slarson slarson merged commit 7c016f1 into ow-pytorch-0.0.1 Jun 29, 2025
4 checks passed
@slarson slarson deleted the codex/investigate-worm_motion-log-file-issue branch June 29, 2025 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants