Skip to content
Open
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions Make/NinjaBuild.pl
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,11 @@ sub read_conf {

# set linker
unshift @{$options{'LINK'}}, "$nvcc --forward-unknown-to-host-compiler -ccbin";

my @arch = grep(/-arch/,@{$options{'GPUFLAGS'}}); # Check if architecture is specified by user
if (!@arch) {
push(@{$options{'GPUFLAGS'}},"-arch=all"); # If not specified by user compile fat binary
}
} else {
push(@{$options{'GPUFLAGS'}},"-xhip -fgpu-rdc");
push(@{$options{'LDFLAGS'}},"-lstdc++ --hip-link");
Expand Down
Loading