Skip to content

Commit

Permalink
Fix checksum calculation: strict aliasing messes things up if no corr…
Browse files Browse the repository at this point in the history
…ect inizialization and savage casting.
  • Loading branch information
Marco Amadori committed Sep 7, 2024
1 parent e5d779a commit 0187bbf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ endif
LFLAGS = -lpthread -L$(CUDA)/lib64 -lcudart
else
ifdef debug
CXXFLAGS = -m64 -mssse3 -Wno-write-strings -g -I. -I$(CUDA)/include
CXXFLAGS = -m64 -mssse3 -Wno-write-strings -fno-strict-aliasing -g -I. -I$(CUDA)/include
else
CXXFLAGS = -m64 -mssse3 -Wno-write-strings -O2 -I. -I$(CUDA)/include
CXXFLAGS = -m64 -mssse3 -Wno-write-strings -fno-strict-aliasing -O2 -I. -I$(CUDA)/include
endif
LFLAGS = -lpthread
endif
Expand Down

0 comments on commit 0187bbf

Please sign in to comment.