Mathematica中文论坛-非官方

标题: 豆粑粑 Tensor Spectral Clustering for Partitioning 设置 [打印本页]

作者: meatball1982    时间: 2018-11-8 14:19
标题: 豆粑粑 Tensor Spectral Clustering for Partitioning 设置
本帖最后由 meatball1982 于 2018-11-8 15:24 编辑

Tensor Spectral Clustering for Partitioning Higher-order Network Structures
论文的git的设置
https://github.com/flame/blis/issues/26




要安装clang
snap
python版本的snap
然后,根据README.md运行就行了。

我的机器两个python.一个是python2.7,
一个是anaconda的python3.6
修改

  1 python2.7 scripts/max_scc.py data/$1.txt $2
  2 python2.7 scripts/re_index.py data/$1.txt
  3 python2.7 scripts/filter.py data/$1.txt
  4 python2.7 scripts/max_scc.py data/$1-filter.txt
  5 python2.7 scripts/re_index.py data/$1-filter.txt
  6 python2.7 scripts/dir3cycles.py data/$1-filter.txt

修改
Makefile
  1 #CXX = /usr/local/Cellar/llvm/3.3/bin/clang++
  2 #SNAP_DIR = /Users/benson/Desktop/Snap-2.3
  3 #CXX = /usr/bin/g++
  4 CXX = /usr/bin/clang++-3.6
  5 SNAP_DIR = /home/mm/softs/Snap-4.1


INCLUDES := -I. -Iinclude $(SNAP_INCLUDES) -fopenmp


可能用的到
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -

sudo apt-get update

sudo apt-add-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-6.0 main"


sudo apt-get install -y clang-6.0 lld-6.0

我用的是

clang-3.6
lld-3.6








作者: meatball1982    时间: 2018-12-8 10:35
本帖最后由 meatball1982 于 2018-12-8 10:36 编辑


在Snap4.1下的

/home/mm/softs/Snap-4.1/glib-core
的bd.cpp
下,应该是12行左右。

14 #elif defined(GLib_GLIBC) || defined(GLib_BSD)
15 struct __exception {
16     int    type;      /* Exception type */
17     char*  name;      /* Name of function causing exception */
18     double arg1;      /* 1st argument to function */
19     double arg2;      /* 2nd argument to function */
20     double retval;    /* Function return value */
21 };

加入红字(没有 num)

作者: meatball1982    时间: 2019-1-3 11:57
注意,mac版本的 snap python
我是安装 anaconda2
一定要用 macosx****py2.7这个,这个又折腾了大半天,总算是完事了。

  1. tar zxvf snap-4.1.0-4.1-macosx10.13.2-x64-py2.7.tar.gz
  2.   cd snap-4.1.0-4.1-macosx10.13.2-x64-py2.7
  3.   #
  4.   # execute one of the 'install' lines below
  5.   #
  6.   # for system Python, execute the following line
  7.   sudo python setup.py install
  8.   # for Anaconda and Homebrew Python, execute the following line - no 'sudo'
  9.   python setup.py install
复制代码





欢迎光临 Mathematica中文论坛-非官方 (http://ilovemathematica.com/) Powered by Discuz! X3.2