Skip to content

Commit

Permalink
compilation flags for optimization #23
Browse files Browse the repository at this point in the history
  • Loading branch information
djanloo committed Jul 8, 2024
1 parent e5ec8ba commit ac0b9ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

CXX := g++
PYTHON := python3
CXXFLAGS := -std=c++17 -Wall -Wextra -ggdb
# CXXFLAGS := -std=c++17 -Wall -Wextra -ggdb
CXXFLAGS := -std=c++17 -Wall -Wextra -O3
BOOST_LIBS := -lboost_filesystem -lboost_system
SOURCES := quilt/core/multiscale.cpp quilt/core/oscillators.cpp quilt/core/links.cpp quilt/core/network.cpp quilt/core/neuron_models.cpp quilt/core/neurons_base.cpp quilt/core/devices.cpp quilt/core/base.cpp

Expand All @@ -21,8 +22,8 @@ $(LIBFILE): $(OBJECTS)
@echo "Building library"
$(CXX) -shared -fPIC -o $(LIBFILE) $(OBJECTS) $(CXXFLAGS) $(BOOST_LIBS)

$(EXECUTABLE): quilt/core/test_file.o $(OBJECTS)
$(CXX) $(CXXFLAGS) $^ -o $@
$(EXECUTABLE): quilt/core/test_file.o $(LIBFILE)
$(CXX) $< -o $@ -Lquilt -lquilt -Iquilt/core/include $(CXXFLAGS)

-include $(DEPENDS)

Expand Down
8 changes: 4 additions & 4 deletions quilt/core/test_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ vector<vector<float>> get_rand_proj_mat(int N, int M, double min, double max){
void test_spiking()
{

int Na = 1000;
int Nb = 1000;
int Na = 2000;
int Nb = 2000;

SpikingNetwork sn = SpikingNetwork();

Expand Down Expand Up @@ -572,12 +572,12 @@ void test_multiscale_base(){


int main(){
// test_spiking();
test_spiking();
// test_sparse();
// test_poisson();
// test_NCERK();
// test_oscill();
// test_inhom_poisson();
test_multiscale_base();
// test_multiscale_base();
}

0 comments on commit ac0b9ed

Please sign in to comment.