Skip to content

Commit ceacde3

Browse files
committed
NVPTX: by-default use target cpu "sm_30"
1 parent 97c8e82 commit ceacde3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/ci/docker/nvptx-cuda/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN apt-get install -y --no-install-recommends \
55
g++ make file curl ca-certificates python git \
66
cmake sudo gdb
77

8-
# TODO(denzp): setup `ptx-linker` CI for auttomatic binary releases.
8+
# FIXME: setup `ptx-linker` CI for automatic binary releases.
99
RUN curl -sL https://github.com/denzp/rust-ptx-linker/releases/download/v0.9.0-alpha/rust-ptx-linker.linux64.tar.gz | \
1010
tar -xzvC /usr/bin
1111

src/librustc_target/spec/nvptx64_nvidia_cuda.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ pub fn target() -> TargetResult {
2222
linker: Some("rust-ptx-linker".to_string()),
2323

2424
// With `ptx-linker` approach, it can be later overriden via link flags.
25-
cpu: "sm_20".to_string(),
25+
cpu: "sm_30".to_string(),
2626

27-
// TODO(denzp): create tests for the atomics.
27+
// FIXME: create tests for the atomics.
2828
max_atomic_width: Some(64),
2929

3030
// Unwinding on CUDA is neither feasible nor useful.
@@ -51,7 +51,7 @@ pub fn target() -> TargetResult {
5151
// This behavior is not supported by PTX ISA.
5252
merge_functions: MergeFunctions::Disabled,
5353

54-
// TODO(denzp): enable compilation tests for the target and
54+
// FIXME: enable compilation tests for the target and
5555
// create the tests for this.
5656
abi_blacklist: vec![
5757
Abi::Cdecl,

src/test/run-make/nvptx-emit-asm/kernel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#![feature(abi_ptx)]
44

55
// Verify the default CUDA arch.
6-
// CHECK: .target sm_20
6+
// CHECK: .target sm_30
77
// CHECK: .address_size 64
88

99
// Verify function name doesn't contain unacceaptable characters.

0 commit comments

Comments
 (0)