针对不同CUDA版本的不同构建规则?(Different build rules for different CUDA versions?)
我想在我的cuda代码中指定我是使用CUDA构建规则版本4.2还是使用CUDA构建规则版本5进行编译。
是否有任何用于此类提议的宏?
注意:我知道有一个选项可以指定当前编译过程是否支持某种体系结构,例如
__CUDA_ARCH__
我正在为cuda构建规则版本寻找类似的宏
非常感谢帮助
I'd like to specify in my cuda code whether I'm compiling using CUDA build rule version 4.2 or CUDA build rule version 5.
is there any macro used for such propose ?
Note: I know there is an option to specify whether current compilation process support certain architecture, e.g
__CUDA_ARCH__
I'm looking for a similar macro for cuda build rule version
Help is very appreciated
原文:
最满意答案
根据http://www.w3.org/TR/css3-mediaqueries/ ,自HTML4和CSS2以来,支持在CSS文件中使用
@media ...
“'print'和'screen'媒体类型在HTML4中定义.HTML4中媒体类型的完整列表是:'aural','braille','掌上','print','projection','screen', 'tty','tv'.CSS2定义相同的列表,弃用'aural'并添加'embossed'和'speech'。此外,'all'用于表示样式表适用于所有媒体类型。“
CSS3扩展了
@media ...
的使用,也允许使用媒体查询,这些也记录在我之前链接的w3.org页面上。此处还记录了媒体类型的用法:
http://www.w3schools.com/css/css_mediatypes.asp
以下是媒体查询支持列表:
http://www.javascriptkit.com/dhtmltutors/cssmediaqueries.shtml
据我所知;
@media screen, print, ...
受到广泛支持,但是您可以使用的新媒体查询仅在兼容CSS3的浏览器中受支持。编辑:这里有更多关于此的信息:
http://www.w3.org/TR/CSS2/media.html#x2
我不担心支持使用
@media ...
这样。According to http://www.w3.org/TR/css3-mediaqueries/ the use of
@media ...
in CSS files has been supported since HTML4 and CSS2."The ‘print’ and ‘screen’ media types are defined in HTML4. The complete list of media types in HTML4 is: ‘aural’, ‘braille’, ‘handheld’, ‘print’, ‘projection’, ‘screen’, ‘tty’, ‘tv’. CSS2 defines the same list, deprecates ‘aural’ and adds ‘embossed’ and ‘speech’. Also, ‘all’ is used to indicate that the style sheet applies to all media types."
CSS3 expanded the use of
@media ...
to also allow media queries to be used, these are also documented on the w3.org page I linked earlier.Usage of media types is also documented here:
http://www.w3schools.com/css/css_mediatypes.asp
Here is a list of support for media queries:
http://www.javascriptkit.com/dhtmltutors/cssmediaqueries.shtml
As far as I can tell; use of
@media screen, print, ...
is very widely supported, however the newer media queries that you can use are only supported in CSS3 compatible browsers.Edit: There is even more info about this here:
http://www.w3.org/TR/CSS2/media.html#x2
I wouldn't worry about support for using
@media ...
this way.
相关问答
更多-
media =“print”和.noprint {display:none;(media=“print” and .noprint { display: none; } is not working)[2021-10-14]
有一个标记错误阻止了.noprint类的div继承css标记文件中的属性。 There was a markup error that prevented the div's with the .noprint class to inherit the attributes from the css markup file. -
媒体类型在样式表中定义,而不是html。 电子邮件不支持所有CSS样式或媒体类型。 电子邮件不是网页。 您的电子邮件的大部分呈现方式取决于邮件客户端(gmail,yahoo等) 请参阅: Campaign Monitor CSS指南 。 Media types are defined in the stylesheets, not the html. Emails do not support all CSS styling, or media types. Emails are not web pages ...
-
你可以使用jquery datatable的customize方法。 $(document).ready(function() { $('#example').DataTable({ dom: 'Bfrtip', buttons: [ { extend: 'print', customize: function ( win ) { $(win. ...
-
@import支持媒体类型和媒体查询,因此您可以将媒体查询传递到@import语句,而不是将其嵌套在@media规则中: @import "print.css" print; 此外,您无法在样式规则中添加@import语句,因此在这种情况下,您需要将其全部放在最前面。 如果由于级联原因不能这样做,则不能使用@import ; 您需要使用元素或类似内容来包含打印样式表。 @import supports media types and media queries on ...
-
试图在Drupal 6中覆盖media =“print”样式表(Trying to overwrite media=“print” stylesheet in Drupal 6)[2023-02-04]
它驻留在misc / print.css或任何支持核心的主题(在themes /中)。 或者,如果您的主题是子主题,它可能是您在网站/所有/主题中的基本主题。 请参阅: https : //api.drupal.org/api/drupal/misc !print.css/6 在主题文件夹的.info文件中,您可以添加自己的print css文件。 stylesheets[print][] = css/print.css It resides in misc/print.css or any core e ...