-
Notifications
You must be signed in to change notification settings - Fork 6
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
Remove conditional compilation #51
Comments
Conditional compilation for ARCH_NAME was removed by @tt-vjovanovic a while back. But it still remains in CMakeLists. |
The |
Is this issue now complete? I do see some isolated cases of ifdefs, but looks like the two top offenders are now resolved? What do you think @joelsmithTT @pjanevskiTT |
As for as umd_device target, I think it is complete. However, we still have tests. I am working on removing soc descriptor from tt_SiliconDevice constructor, after that we can have unified compilation for tests as well. If this was never about the tests, we can close it |
The code part is more or less complete (no more ARCH_NAME in source files) but as @pjanevskiTT points out there is still a bit more work to do for the tests. (ARCH_NAME still shows up in tests/CMakeLists.txt and controls include paths). |
Speaking of tests:
I think we have a few options, but the easiest that is coming to mind is some CMake magic to generate 3x the number of executables. i.e. a custom add_executable umd_add_exectuable(target_name arch_name) Use the above in a for each loop. cc: @afuller-TT |
|
Executable? or lib? If this is actual unit tests (no hw involved) then doing a matrix of tests in a single executable would suffice, no? |
I was talking about all the test exes, unfortunately the test cases need to be ARCH_NAME aware.
I am not familiar with all the tests in the repo, but there are at least some that require hardware. |
@blozano-tt @afuller-TT can you open smaller issues for separate tests where the aim would be to remove conditional compilation and close this bigger issue? |
Closed in favor of #270 capturing further progress |
Examine uses of conditional compilation (e.g. ARCH_NAME, ISSUE_123_DISABLE_FIX, etc.) and eliminate where possible.
The text was updated successfully, but these errors were encountered: