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

Fix macos building error. #553

Merged
merged 35 commits into from
Jan 4, 2025
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7b6cd4e
Fix casting to fit Clang compiler.
hunghaoti Jan 2, 2025
a9d753a
Add macos test build in dev-master branch.
hunghaoti Jan 2, 2025
48f854b
Test enable CMAKE_INTERPROCEDURAL_OPTIMIZATION
hunghaoti Jan 2, 2025
da04d7b
Test turn off pybind.
hunghaoti Jan 2, 2025
c3eab5f
test turn off pybind
hunghaoti Jan 2, 2025
35098ca
revert to enable python wrapper.
hunghaoti Jan 2, 2025
2d821c2
Test, remove the enum_name cause the Clang compile error.
hunghaoti Jan 3, 2025
0bfd432
Clang format
hunghaoti Jan 3, 2025
3d1c576
Add inline in varialble template.
hunghaoti Jan 3, 2025
e70b56f
Add inline in varialble template.
hunghaoti Jan 3, 2025
afb2040
test mac build
hunghaoti Jan 3, 2025
8d47056
Fix run different comment in different platform.
hunghaoti Jan 3, 2025
3b27acf
instead of lscpu, using sysctl for macos to get the info of CPU.
hunghaoti Jan 3, 2025
2d48069
Turn off hptt fine tune in workflow, so same as test build.
hunghaoti Jan 3, 2025
953ed51
Add back correct branch.
hunghaoti Jan 3, 2025
24e8820
Delete the branch dev-master in conda_build_macos workflow.
hunghaoti Jan 3, 2025
569f756
Merge pull request #556 from Cytnx-dev/haoti/test_mac_build
hunghaoti Jan 3, 2025
b682af5
Use channel conda forge.
hunghaoti Jan 3, 2025
c1a18d3
Merge pull request #557 from Cytnx-dev/haoti/test_mac_build
hunghaoti Jan 3, 2025
d837a1a
Disable ctest on Macos workflos.
hunghaoti Jan 3, 2025
71d9b8d
Merge pull request #558 from Cytnx-dev/haoti/test_mac_build
hunghaoti Jan 3, 2025
80bb082
Fix workflow file incoorect syntax.
hunghaoti Jan 3, 2025
a90be66
Merge pull request #559 from Cytnx-dev/haoti/test_mac_build
hunghaoti Jan 3, 2025
8cb8215
Disable macos BuildAndTest.
hunghaoti Jan 3, 2025
b4281c9
enabel .
hunghaoti Jan 3, 2025
6c328c3
Revert workflow to original one.
hunghaoti Jan 3, 2025
e63f78a
Revert workflow to original one.
hunghaoti Jan 3, 2025
d289cee
Add dev-master for macos.
hunghaoti Jan 3, 2025
87ef0c7
Disable since it will build failed on macos.
hunghaoti Jan 3, 2025
9307805
Revert, don't need for dev-master branch.
hunghaoti Jan 3, 2025
e20f9b3
Refine Readme examle code.
hunghaoti Jan 4, 2025
5062df1
Enable on linux platform.
hunghaoti Jan 4, 2025
05f07dc
Enable macos building test temporarily.
hunghaoti Jan 4, 2025
55e51bd
Enable macos building test temporarily.
hunghaoti Jan 4, 2025
9c1d8f9
Remove macos bulding workflor in branch dev-master.
hunghaoti Jan 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Test, remove the enum_name cause the Clang compile error.
  • Loading branch information
hunghaoti committed Jan 3, 2025
commit 2d821c265d1cb017dfec77be90be17817f37d63e
5 changes: 0 additions & 5 deletions pybind/cytnx.cpp
Original file line number Diff line number Diff line change
@@ -59,11 +59,6 @@ PYBIND11_MODULE(cytnx, m) {
bond_binding(m);
py::add_ostream_redirect(m, "ostream_redirect");

py::enum_<cytnx::Type_class::Type> type_enum(m, "Type");
for (std::size_t i = 0; i < N_Type; ++i) {
type_enum.value(Type.enum_name(i), static_cast<Type_class::Type>(i));
}
type_enum.export_values();

auto mdev = m.def_submodule("Device");
mdev.attr("cpu") = (cytnx_int64)cytnx::Device.cpu;