Skip to content

Commit

Permalink
Update default GPU architecture name to sm_20.
Browse files Browse the repository at this point in the history
  • Loading branch information
takagi committed Feb 6, 2016
1 parent 29284ce commit 65e8089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -159,7 +159,7 @@ Specifies the temporary directory in which cl-cuda generates files such as `.cu`

### [Special Variable] \*nvcc-options\*

Specifies additional command-line options to be passed to `nvcc` comand which cl-cuda calls internally. The default is `(list "-arch=sm_11")`.
Specifies additional command-line options to be passed to `nvcc` comand which cl-cuda calls internally. The default is `(list "-arch=sm_20")`.

(setf *nvcc-options* (list "-arch=sm_20 --verbose"))

Expand Down
4 changes: 1 addition & 3 deletions src/api/nvcc.lisp
Expand Up @@ -33,9 +33,7 @@
(asdf:system-relative-pathname :cl-cuda #P"include"))

(defvar *nvcc-options*
;; compute capability 1.3 is needed for double floats, but 2.0 for
;; good performance
(list "-arch=sm_11"))
(list "-arch=sm_20"))

(defun get-nvcc-options (cu-path ptx-path)
(let ((include-path (get-include-path)))
Expand Down

0 comments on commit 65e8089

Please sign in to comment.