[Bug 1364618] Review Request: embree - Collection of high-performance ray tracing kernels developed at Intel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1364618



--- Comment #9 from Luya Tshimbalanga <luya@xxxxxxxxxxxxxxxxx> ---
(In reply to Zbigniew Jędrzejewski-Szmek from comment #7)
> You should merge the embree-lib subpackage with the main package. The main
> package currently contains only a few small doc files.
> 
> The .so file should be packaged in the -devel subpackage
> [https://fedoraproject.org/wiki/Packaging:Guidelines#Devel_Packages]

Fixed

> 
> Also:
> embree.src:25: W: mixed-use-of-spaces-and-tabs (spaces: line 25, tab: line 1)

That line contained the %package lib which is now removed

> 
> About the compiler flags: the guidelines say that distribution compilation
> flags should be used during compilation. How to achieve that is not fully
> specified, since it depends on the build system and usually there's a few
> different way to achieve the desired result.
> 
> In this case the distro flags _are_ used:
> 
> $ rpmbuild --eval %optflags
> -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
> -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
> -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64
> -mtune=generic
> 

Thanks for the tip. 

> So the only issue is that this package requires AVX extensions, which means
> that it will not run on processors older then ~2011. Our guidelines specify
> that earlier CPUs should be supported, but in this case I'd say that this is
> OK: this program makes use and requires this hardware capability. Compiling
> a crippled version that will run slowly on all hardware isn't useful.

That part is difficult given my limited knowledge on such advanced compilation.
I don't know how access AVX extensions so I had to disable the tutorials. 

> 
> What remains to be checked:
> - that we actually got it to compile properly, i.e. that it in fact uses AVX
> and runs fast
> - that it doesn't crash too horribly on unsupported CPUs
> 
> 
> I think you should build the tests and run them in %check. Without any tests
> it's hard to check that the package is compiled OK. The problem is that some
> of the examples don't compile, and some others fail. So I think you should
> compile: benchmark, verify, maybe some others?, and run them in %check.

Alas the test are part of -DENABLE_TUTORIALS tags on cmake which failed to
build when enabled. It is a first I reached that level of complexity, I guess
that is part of challenge.



> Upstream has an -examples subpackage, I think you could add one too, and put
> the tests binaries in it, in %{_libexecdir}/embree/. This way users can
> easily verify that the library works on their systems.

Which needs -DENABLE_TUTORIALS on otherwise they will be not built.

> 
> You compile without ispc. But ispc is free software, and could be packaged
> for Fedora. Sounds like a useful things to have. I can do the review if you
> do the package ;)

Done deal. The initial spec and srpm is submitted on 
https://bugzilla.redhat.com/show_bug.cgi?id=1366881

-- 
You are receiving this mail because:
You are on the CC list for the bug.
You are always notified about changes to this product and component
_______________________________________________
package-review mailing list
package-review@xxxxxxxxxxxxxxxxxxxxxxx
https://lists.fedoraproject.org/admin/lists/package-review@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Legacy]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]     [Fedora Tools]