Skip to content

Commit

Permalink
test windows matlab build
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Sep 10, 2023
1 parent a37e3e1 commit a902077
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,21 +78,23 @@ jobs:
make oct CC=gcc-11 CXX=g++-11 USEROCTOPT="CXXFLAGS='-pipe -Os -arch x86_64' DL_LD=g++ DL_LDFLAGS='-fopenmp -static-libgcc -static-libstdc++'"
otool -L ../mmclab/mmc.mex
else
export PATH='/c/ProgramData/chocolatey/lib/octave.portable/tools/octave/mingw64/bin':$PATH
PATH='/c/ProgramData/chocolatey/lib/octave.portable/tools/octave/mingw64/bin':$PATH
which g++
g++ --version
make oct CC=gcc CXX=g++ LIBOPENCL='/c/Windows/System32/OpenCL.dll --verbose' LFLAGS='-static-libgcc -static-libstdc++'
objdump -p ../mmclab/mmc.mex | grep "DLL Name:"
make clean
make -C zmat clean
fi
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' regexprep(computer('arch'), 'darwin[0-9.]+-', 'darwin-')])"
octave-cli --eval "fprintf(1,['OCTAVE_ARCH=' regexprep(computer('arch'), 'darwin[0-9.]+-', 'darwin-')])" >> $GITHUB_ENV
- name: Build mmclab for MATLAB
run: |
cd src
if [[ "$RUNNER_OS" == "Windows" ]]; then
g++ --v
make mex LDFLAGS="-static lib/libzmat.a" EXTRALIB="-Lc:/ProgramData/chocolatey/lib/mingw/tools/install/mingw64/x86_64-w64-mingw32/lib-v"
objdump -p ../mmclab/mmc.mexw* | grep "DLL Name:"
ldd ../mmclab/mmc.mexw*
elif [[ "$RUNNER_OS" == "macOS" ]]; then
which mex
make mex CC=gcc-11 CXX=g++-11 MEXLINKOPT="-static-libstdc++ -static-libgcc -fopenmp" EXTRALIB="-v -f mexopts_maci64_gcc.xml"
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ To highlight a few most important updates:
- Provide mmc-trinity binaries with simultaneous SSE/OpenCL/CUDA backend support
- CMake based portable compilation system
- Added GNU Octave mex file for MMCLAB on Linux/MacOS/Windows
- Photon-sharing is now supported in the GPU code (by Shijie Yan)
- Several critical bug fixes (by Shijie Yan)
- Github Action based continuous integration (CI) system for automated building/packaging/testing

Expand Down
1 change: 0 additions & 1 deletion README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ To highlight a few most important updates:
* Provide mmc-trinity binaries with simultaneous SSE/OpenCL/CUDA backend support
* CMake based portable compilation system
* Added GNU Octave mex file for MMCLAB on Linux/MacOS/Windows
* Photon-sharing is now supported in the GPU code (by Shijie Yan)
* Several critical bug fixes (by Shijie Yan)
* Github Action based continuous integration (CI) system for automated building/packaging/testing

Expand Down

0 comments on commit a902077

Please sign in to comment.